G
Guest
Hello, maybe someone can help me with what I am not seeing here. I already
know that I can have multible forms, but only one can have "runat=server".
This is how I am trying to render my other forms:
Dim form As HtmlForm = New HtmlForm
form.EnableViewState = False
form.Attributes.Add("Name", "test" & i)
form.Method = "post"
form.Attributes.Add("ID", "test" & i)
form.Attributes.Add("action", "cwebitems.aspx")
form.Attributes.Remove("runat")
form.Attributes.Add("runat", "client")
.....code that makes a table....
container.Controls.Add(form)
To me this code should add a form without the "runat=server" option on. If
that is correct, why do I get a "A page can have only one server-side Form
tag" error message? Am I doing this correctly?
Thanks,
Charles
know that I can have multible forms, but only one can have "runat=server".
This is how I am trying to render my other forms:
Dim form As HtmlForm = New HtmlForm
form.EnableViewState = False
form.Attributes.Add("Name", "test" & i)
form.Method = "post"
form.Attributes.Add("ID", "test" & i)
form.Attributes.Add("action", "cwebitems.aspx")
form.Attributes.Remove("runat")
form.Attributes.Add("runat", "client")
.....code that makes a table....
container.Controls.Add(form)
To me this code should add a form without the "runat=server" option on. If
that is correct, why do I get a "A page can have only one server-side Form
tag" error message? Am I doing this correctly?
Thanks,
Charles