Hi
My proyect ASP VB.net consists in a MasterPage and WebForm.aspx
In the master page I have two controls, a textbox and a label. I needed to put them inside a tag to make them work.
In my .aspx I have more controls such as DropDownList, GridView, Buttons and some checkboxes.
Theese last ones won't work unless I put them inside a tag, but when I execute I recive "A page can have only one server-side Form tag." message.
I understand the message, so i take away the runat tag in my .aspx.
I also played a bit with Enable AutoPostBack property in the controls and also in the code.
Also I put in my .aspx behind code this VB code:
With this las code, the DropDownLists get filled with data, but when I selecet an item, the .aspx webpage seems to reload and the selection don't ocur.
Thanks for your time and help.
What I have tried:
Public Overrides Sub VerifyRenderingInServerForm(ByVal control As Control)
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
For i = 0 To Me.Controls.Count - 1
VerifyRenderingInServerForm(Me.Controls.Item(i))
Next
End Sub