Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TextMode Password
Message
 
À
18/03/2004 16:49:30
Eugenio Casal
Futura Tecnologia Informação Consult Ltd
São Paulo, Brésil
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00887701
Message ID:
00889853
Vues:
14
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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform