E
Elliot Rodriguez
I have a dropdown list that defines the number of textboxes that appear
within a particular panel. The boxes are created when the dropdownlist's
SelectedIndexChanged event fires on postback.
Also in the form is a datagrid that has some custom validation performed on
values within its rows. The validation is server side but not tied into any
ValidatorControls.
When the form is submitted, if the datagrid contains values that are invalid
according to my rules, the page reloads but my textboxes created in the
previous panel are gone. The dropdownbox still holds its value but the
requisite number of textboxes is no longer there.
I know this is probably a problem with the page events when the controls are
rendered, the problem I cant figure out is how to keep the controls created
during the dropdown's event; Init and Render have already fired.
Any suggestions?
Thanks
within a particular panel. The boxes are created when the dropdownlist's
SelectedIndexChanged event fires on postback.
Also in the form is a datagrid that has some custom validation performed on
values within its rows. The validation is server side but not tied into any
ValidatorControls.
When the form is submitted, if the datagrid contains values that are invalid
according to my rules, the page reloads but my textboxes created in the
previous panel are gone. The dropdownbox still holds its value but the
requisite number of textboxes is no longer there.
I know this is probably a problem with the page events when the controls are
rendered, the problem I cant figure out is how to keep the controls created
during the dropdown's event; Init and Render have already fired.
Any suggestions?
Thanks