Hi,
I created a custom control and I add it dynamically to the page at runtime, but the buttons in the control don't fire any events.
Here's some code:
Dim FormID As String = Nothing
For i As Integer = 1 To ProjectTypes.WinFormCount
FormID = "Form" & i
Dim myControl As Control = LoadControl("Controls/WebWinForms.ascx")
Dim lbl As Label = CType(myControl.FindControl("lblControlTitle"), Label)
Dim btnBack As Button = CType(myControl.FindControl("btnPTBack"), Button)
Dim btnNext As Button = CType(myControl.FindControl("btnPTNext"), Button)
lbl.Text = FormID
Dim vw As New View
vw.EnableViewState = True
vw.ID = FormID
vw.Controls.Add(myControl)
mvWizard.Views.Add(vw)
Dim trgBac ...
Go to the complete details ...