I created one user control page "WebUserControl.ascx". which is having one button & one label.
i want to implement it dynamically in my page.
Following are the coding written on page load.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim UCDynamic As Control
UCDynamic = LoadControl("WebUserControl.ascx")
Page.Controls.Add(UCDynamic)
End Sub
But its throwing error as
"Control 'ctl02_Enter' of type 'Button' must be placed inside a form tag with runat=server".
how to do this..??
Thanks in advance...
Regards,
Chikul