Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TextMode Password
Message
 
To
18/03/2004 16:49:30
Eugenio Casal
Futura Tecnologia Informação Consult Ltd
São Paulo, Brazil
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00887701
Message ID:
00889853
Views:
13
As you already found out ASP.Net does not pass password values back. You can pretty easily override this if you want by subclassing the control and storing the value back to it.
override protected void OnLoad(EventArgs e) 
{
base.OnLoad(e);

// *** Post back password values as well - you can always clear it manually
if (this.TextMode ==  TextBoxMode.Password)
	this.Attributes.Add("value", this.Text);
}
As to security risk - possible, then again if you're posting hte page you're also sending it back from the client so this isn't exactly a big issue.

+++ Rick ---




>Hi,
>
>When I set the TextMode property of a databound textbox to Password, I loose it's Text.
>
>Is this a bug? Any work around?
>
>Thanks in advance,
>
>Eugênio
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform