yes, this works  !

But it have a security leak as a side effect.
if the user uses the 'view source code' in the browser to see the html, the password will be there !

So use it with caution !

Fernando Nomellini

-----Mensagem Original----- From: jack me Subject: Re: [DotNetDevelopment] How to keep Password on textbox password mode in postback event

Hi Praveen,

It is possible to retain password after postback.
Please check this url:

 if (Page.IsPostBack)
  {
   TextBox1.Attributes.Add("value", TextBox1.Text);

  }

http://www.xpode.com/ShowArticle.aspx?ArticleId=313

--
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to