S
steven scaife
Hi
I have been banging my head for a few days now with this issue.
I have a page that has several update panels everything is working fine
except for 1 thing.
I am creating a sort of wizard that will build a form that I plan to save to
a database
On stage 2 I load a usercontrol an unspecified number of times depending on
how many fields there will be and add it to an accordian pane.
So if I have two fields there will be two accordian panes this all works fine
Inside of the usercontrol there is a drop down list that adds textboxes
and/or dropdown lists to a placeholder.
When I postback the fields in the usercontrol maintain postback and the
dropdown list has the value selected however the dynamically created controls
appear but don't have any values that have been selected or entered into them.
All the controls have the same ids so thats not the problem.
The page on the load loops through and calls loadcontrol sets the id and
adds the control to the accordianpane which is added to the accoridan.
If i have my code in the init event the dropdown value is not preserved
TIA
I have been banging my head for a few days now with this issue.
I have a page that has several update panels everything is working fine
except for 1 thing.
I am creating a sort of wizard that will build a form that I plan to save to
a database
On stage 2 I load a usercontrol an unspecified number of times depending on
how many fields there will be and add it to an accordian pane.
So if I have two fields there will be two accordian panes this all works fine
Inside of the usercontrol there is a drop down list that adds textboxes
and/or dropdown lists to a placeholder.
When I postback the fields in the usercontrol maintain postback and the
dropdown list has the value selected however the dynamically created controls
appear but don't have any values that have been selected or entered into them.
All the controls have the same ids so thats not the problem.
The page on the load loops through and calls loadcontrol sets the id and
adds the control to the accordianpane which is added to the accoridan.
If i have my code in the init event the dropdown value is not preserved
TIA