Hello,
I am trying to dynamically create buttons, but keep running into a problem. After looking everywhere on the net, I have not found a solution to this problem and need help.
Here is my code:
Dim HeaderButtonArray As Button
HeaderButtonArray = New Button
HeaderButtonArray.Style("Position") = "Relative"
HeaderButtonArray.Style("Left") = "20px"
HeaderButtonArray.Style("Top") = "20px"
Me.Controls.Add(HeaderButtonArray)
Here is the error I get:
Control 'ctl00_ctl03' of type 'Button' must be placed inside a form tag with runat=server.
Go to the complete details ...