M
Marcel Balcarek
I create a user control dynamically:
Dim newCriteriaControl As CriteriaTextBoxUserControl =
CType(Me._page.LoadControl("CriteriaTextBoxUserControl.ascx"),
CriteriaTextBoxUserControl)
myContainer.Add(newCriteriaControl)
and the user control's load event executes on initial executon of the page.
On a POST of the same page, the control is added as above, but the load
event is not firing, nor is prerender.
What's going on? How can I get code to execute in the user control on a page
postback?
Marcel
Dim newCriteriaControl As CriteriaTextBoxUserControl =
CType(Me._page.LoadControl("CriteriaTextBoxUserControl.ascx"),
CriteriaTextBoxUserControl)
myContainer.Add(newCriteriaControl)
and the user control's load event executes on initial executon of the page.
On a POST of the same page, the control is added as above, but the load
event is not firing, nor is prerender.
What's going on? How can I get code to execute in the user control on a page
postback?
Marcel