J
jarrett.roberts
I have created a webform that allows the user to complete the form in
three steps and allows a back and next button to allow easy navigation
between these different forms. If they go back, I save the information
that they had previously input. The problem I have run into, however,
is that if a user decides to change their original values (in
TextBoxes), the value is not updated when the "Next" (i.e. Submit)
Button is pressed.
I have been looking online for the last hour and a half trying to
resolve this problem. I noticed a similar issue in which a TextBox
would only save to ViewState under certain conditions:
1. the event TextChanged of TextBox must be wired
2. the TextBox class must be disabled, hidden, or be a custom class
inherited from TextBox.
http://www.dotnetslackers.com/ASP_NET/re-19178_The_TextBox_loss_of_text_conspiracy.aspx
I tried wiring TextChanged to no avail. After some more testing, I
also noticed that the problem does not occur if I don't load in the
saved values passed in from the referring form.
I am confused. I just want to be able to press submit and (in some way
shape or form) access the value input into every textbox control on the
page.
Any help would be greatly appreciated. Thanks!
-Jarrett
three steps and allows a back and next button to allow easy navigation
between these different forms. If they go back, I save the information
that they had previously input. The problem I have run into, however,
is that if a user decides to change their original values (in
TextBoxes), the value is not updated when the "Next" (i.e. Submit)
Button is pressed.
I have been looking online for the last hour and a half trying to
resolve this problem. I noticed a similar issue in which a TextBox
would only save to ViewState under certain conditions:
1. the event TextChanged of TextBox must be wired
2. the TextBox class must be disabled, hidden, or be a custom class
inherited from TextBox.
http://www.dotnetslackers.com/ASP_NET/re-19178_The_TextBox_loss_of_text_conspiracy.aspx
I tried wiring TextChanged to no avail. After some more testing, I
also noticed that the problem does not occur if I don't load in the
saved values passed in from the referring form.
I am confused. I just want to be able to press submit and (in some way
shape or form) access the value input into every textbox control on the
page.
Any help would be greatly appreciated. Thanks!
-Jarrett