J
JB McMichael
I have an aspx page that based on a query loads a user control dynamically.
The aspx page is simple, just a place holder, the code behind queries a
table that stores the names of the ascx files. I then add the control
to the placeholder:
Dim myUC As Control = Page.LoadControl("includes/" & ascx_page)
myplaceholder.Controls.Add(myUC)
Each of these user controls has 2 or 3 textboxes and a Submit button.
Each user control has a onclick method for the Submit button in which
the values of the text boxes are entered in to a database. My problem
is that the event never fires. The code compiles, and the forms load up
just fine, but clicking on the Submit button does nothing. So now I am
stuck and looking for some help.
The aspx page is simple, just a place holder, the code behind queries a
table that stores the names of the ascx files. I then add the control
to the placeholder:
Dim myUC As Control = Page.LoadControl("includes/" & ascx_page)
myplaceholder.Controls.Add(myUC)
Each of these user controls has 2 or 3 textboxes and a Submit button.
Each user control has a onclick method for the Submit button in which
the values of the text boxes are entered in to a database. My problem
is that the event never fires. The code compiles, and the forms load up
just fine, but clicking on the Submit button does nothing. So now I am
stuck and looking for some help.