J
John
Hi..
I'm creating a "Web Custom Control" and need to generate a
form. I can't put the form tag's to the aspx-fil. I have
to generate them from the webcontrol.
I understand that this code wont work:
Protected Overrides Sub Render(ByVal output As
HtmlTextWriter)
output.AddAttribute("runat", "server")
output.AddAttribute("ID", "MainForm")
output.RenderBeginTag(HtmlTextWriterTag.Form)
'My form-controls
output.RenderEndTag
End Sub
But how can I do this??
Regards,
John
I'm creating a "Web Custom Control" and need to generate a
form. I can't put the form tag's to the aspx-fil. I have
to generate them from the webcontrol.
I understand that this code wont work:
Protected Overrides Sub Render(ByVal output As
HtmlTextWriter)
output.AddAttribute("runat", "server")
output.AddAttribute("ID", "MainForm")
output.RenderBeginTag(HtmlTextWriterTag.Form)
'My form-controls
output.RenderEndTag
End Sub
But how can I do this??
Regards,
John