<asp:textbox id="txtClave" runat="server" textmode="Password"></asp:textbox>
Cuando el valor se asigna al control, éste no se puede ver y peor aun en el postback de la pagina, pierde el valor.
La solución consiste en asignar el valor que queremos que teme el control como un atributo. Si además queremos que la clave se mantenga entre Postbacks, bastará con que asignemos el valor cada vez que recarga la página:
protected void Page_Load(object sender, EventArgs e)
{
txtClave.Attributes.Add("value", txtClave.Text);
}
This is great useful coding Technique.. Awesome Thanks for sharing..
ResponderEliminarThanks for commenting, striking good site http://evincetech.com/
ResponderEliminarWhat you're saying is completely true. I know that everybody must say the same thing, but I just think that you put it in a way that everyone can understand. I'm sure you'll reach so many people with what you've got to say.
ResponderEliminarThank you very much UX Designers Delhi, your comment generates me joy, greetings.
ResponderEliminar