Archive

Posts Tagged ‘dotnet’

Preserving values of password fields after postback

August 18th, 2009

You have created your sign up form with full power of AJAX but when you do your trick to check for username availability via AJAX, it seems that passwords fields are reset. You can overcome this situation by setting up passwords filed values each time you make a postback.

1
txtPassword.Attributes.Add("value", txtPassword.Text);

That should do the trick!

ASP.Net, Programming , , ,