Problem in retaining the password value

Hi All,

I am using Visual Studio .Net 2003.

I am working on Web applications using ASP.Net.

In UI design, I have textbox for username and password field, say txtUserName, txtPassword. And also UI Contains one combobox for business entity say cmbBusinessEntity.

Following properties are set for above controls.

UserName:
Name : txtUserName
AutoPostback : False
EnabledViewState : True
Password:
Name : txtPassword
AutoPostback : False
TextMode : Password
EnabledViewState : True
BusinessEntity:(ComboBox)
Name : cmbBusinessEntity
AutoPostback : True
EnabledViewState : True

I am entering values in the following order :

UserName, Password and selected the BusinessEntity.

Now I am facing the problem that I am able to retain the Entered UserName
but the Password field is getting blank. Now I need to retype the password value.

Is there any way to retain the password value as retaining the username.
Thanks in Advance,

[1002 byte] By [anemvr] at [2008-2-7]
# 1
If you're trying to get the password to be prepopulated on an HTML form that is sent TO the browser, that's a bad idea! The server should never be sending the password back to the browser as the password will appear in the HTML. That's a huge security risk.
dkocur2 at 2007-9-8 > top of Msdn Tech,Visual C#,Visual C# Language...
# 2
Please post this on the http://forums.asp.net forums.
DavidM.Kean at 2007-9-8 > top of Msdn Tech,Visual C#,Visual C# Language...