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 ....
<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