Its a problem everybody faced in their browser. The browser cookie saved the textbox previous history. Sometimes it become security issue.
So we should clear previous history from textbox. So I just write a textbox properties in Page_Prerender event in my page(codebehind).
![]() |
| Click on image to view large |
protected void Page_PreRender(Object sender, EventArgs e)
{
txtPassword.Attributes.Add(“autocomplete”, “off”)
txtConfirmPassword.Attributes.Add(“autocomplete”, “off”);
}
{
txtPassword.Attributes.Add(“autocomplete”, “off”)
txtConfirmPassword.Attributes.Add(“autocomplete”, “off”);
}
Hope It will solve your problem too.

No comments:
Post a Comment