Link to home
Start Free TrialLog in
Avatar of shanemay
shanemayFlag for United States of America

asked on

Controls will not release state.

I am creating an update form to update user profiles, however, when I click the submit button, the controls on the page are not holding the new values, they revert to the values they were assigned when the page loaded.  I am not sure why this is happening.  

Any help would be greatly appreciated, Thank you.
Avatar of shanemay
shanemay
Flag of United States of America image

ASKER

I thought I would leave an example,

txtEmailAddress is a Text Box Control assigned the users email address on page load.  When the user changes the email address and clicks submit, my code behind the submit button

string emailAddress = txtEmailAddress.Text, pulls the email address that was originally loaded with the page and not the corrected or new email address the user entered.  


I hope this makes it more clear.  Again, thank you for any help or advice.
ASKER CERTIFIED SOLUTION
Avatar of David Robitaille
David Robitaille
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you, that was it.  I do not know how I missed it, but that solved it. Again, Thank you.