shanemay
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.
Any help would be greatly appreciated, Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you, that was it. I do not know how I missed it, but that solved it. Again, Thank you.
ASKER
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.