V
Venus
Hello,
I am trying to generate a dynamic form at runtime and would like to do it
using "<asp: ..." form elements as follows
Build up the string that is placed somewhere in the HTML code the same way
like regular input fields can.
strForm = "<form name=""myForm"" runat=""server"">" & vbCrLf
strForm += "<asp:button name=""myName"" .... runat=""server"" />" & vbCrLf
strForm += "<asp:button ....... runat=""server"" />" & vbCrLf
strForm += "</form>" & vbCrLf
--
The problem this code is placed as a string "ad literam" without generating
the elements.
If I would use normal input fields this works fine but would like to use ASP
controls if possible.
Is there a way to do what I am trying to do here ?
I don't want to do the code generation in the HTML section by mixing HTML
with VB code
<% If something %>
<asp:button name= ... />
<% Else %>
......
I am trying to generate a dynamic form at runtime and would like to do it
using "<asp: ..." form elements as follows
Build up the string that is placed somewhere in the HTML code the same way
like regular input fields can.
strForm = "<form name=""myForm"" runat=""server"">" & vbCrLf
strForm += "<asp:button name=""myName"" .... runat=""server"" />" & vbCrLf
strForm += "<asp:button ....... runat=""server"" />" & vbCrLf
strForm += "</form>" & vbCrLf
--
The problem this code is placed as a string "ad literam" without generating
the elements.
If I would use normal input fields this works fine but would like to use ASP
controls if possible.
Is there a way to do what I am trying to do here ?
I don't want to do the code generation in the HTML section by mixing HTML
with VB code
<% If something %>
<asp:button name= ... />
<% Else %>
......