password text boxes and viewstate

J

Jason

I have a form with a textbox and the textmode is set to 'password'. I also
have some dropdownlist that poplulate other fields on the form when changed.
But everytime the form postsback to the server the password textboxes loose
their value that has been typed in.

I can put the password textbox as the last item, but not really what I
wanted. Any ideas on getting the password to persist through the postback?

Thanks in advance,

Jason
 
B

bruce barker

simple:


if (IsPostback)
{
mypasswordTextBox.Attributes['value'] = mypasswordTextBox.Text;
}


-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,832
Latest member
GlennSmall

Latest Threads

Top