Mihir Solanki

mihirsolanki.com

<November 2008>
SuMoTuWeThFrSa
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456


Navigation

Links

Subscriptions

Post Categories



ASP.NET FAQ : How can I provide a default value for a password TextBox?

When a TextBox control has its TextMode property set to Password, you cannot assign a default value to the control using the standard Text property. In order to assign a default value, you need to use code that looks like this:

C# Version

txtPassword.Attributes["value"] = "default value";

VB.NET Version

txtPassword.Attributes("value") = "default value"

posted on Friday, December 09, 2005 4:43 AM by mihirsolanki





Powered by Dot Net Junkies, by Telligent Systems