T
Tim Royal
I'm using a GridView inside a Wizard Control with a textbox and two
listboxes in the footer. I populate these listboxes from the database if the
page isn't on postback (and the textbox is left blank initially). All of
these controls have viewstate enabled.
When the user fills out the textfield and clicks ADD, I do a check for
validation of the data. If the user does not select a valid listbox entry, I
abort the rest of the add, and make visible a label that tells them what
they need to select (Yes, I know of validators, but had horrendous issues
with them in conjunction with the gridview and wizard).
The problem is that when this situation occurs, the textbox is cleared, and
the two listboxes are empty (no viewstate). I was under the impression that
if I had viewstate enabled, this information would be retained.
Am I missing something? Any insight appreciated.
Tim
listboxes in the footer. I populate these listboxes from the database if the
page isn't on postback (and the textbox is left blank initially). All of
these controls have viewstate enabled.
When the user fills out the textfield and clicks ADD, I do a check for
validation of the data. If the user does not select a valid listbox entry, I
abort the rest of the add, and make visible a label that tells them what
they need to select (Yes, I know of validators, but had horrendous issues
with them in conjunction with the gridview and wizard).
The problem is that when this situation occurs, the textbox is cleared, and
the two listboxes are empty (no viewstate). I was under the impression that
if I had viewstate enabled, this information would be retained.
Am I missing something? Any insight appreciated.
Tim