password text boxes and viewstate

  • Thread starter Thread starter Jason
  • Start date Start date
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
 
simple:


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


-- bruce (sqlwork.com)
 
Back
Top