giovedì 31 ottobre 2013

C# - How to Bind ASP TextBox in TextMode = Password

If you have an Asp TextBox in TextMode = Password for example:


<asp:TextBox  id="txt_password" runat="server" TextMode="Password" ></asp:TextBox>

you can't do simply  txt_password.Text = "yourValue" to bind it, but you need to do as follow:

txt_password.Attributes.Add("value", "yourValue");


My Two Cents ...

Nessun commento:

Posta un commento