Friday, 29 June 2012

How to show text in asp textbox when textmode is password

  Create prerender event    Like
 
  <asp:TextBox ID=" textboxID " runat="server" AutoPostBack="True" TextMode="Password"
                                                        OnTextChanged="txtOldPassword_TextChanged"
                                                        OnPreRender=" textboxID_PreRender"></asp:TextBox>


   protected void  textboxID_PreRender(object sender, EventArgs e)
    {
        string strSample = textboxID.Text;
         textboxID.Attributes.Add("value", strSample);
    }

After that it will assign to that corresponding textbox ....

No comments:

Post a Comment