C
Craig Buchanan
i am building a webform that dynamically loads one of two web usercontrols
during the webform's page_load event. i am using label, named TabId, on the
webform to persist which WUC should be loaded. during the postback i reload
the appropriate web usercontrol based on the value in TabId. so far so
good.
unfortunately, when i postback this WUC, none of the controls in the WUC,
except labels, have any values. what am i not doing? all the controls on
the WUC have enableviewstate set to true. i've read that i should move the
loadcontrol to the page_init event, but then the value for TabId is blank.
I would really appreciate some guidance. thanks,
craig buchanan
during the webform's page_load event. i am using label, named TabId, on the
webform to persist which WUC should be loaded. during the postback i reload
the appropriate web usercontrol based on the value in TabId. so far so
good.
unfortunately, when i postback this WUC, none of the controls in the WUC,
except labels, have any values. what am i not doing? all the controls on
the WUC have enableviewstate set to true. i've read that i should move the
loadcontrol to the page_init event, but then the value for TabId is blank.
I would really appreciate some guidance. thanks,
craig buchanan