C
Chris Thunell
I have an aspx web form with a table that i'm sending via response.write...
in one of the cells i would like to put a dynamically created server
control. The amount of rows is variable... so i could have 10 rows /
controls. How do i create a server control that goes into the appropriate
grid cell?
Example:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Response.Write("<TABLE id='Table1' cellSpacing='1' cellPadding='1'
width='300' border='1'>")
Response.Write("<TR>")
Response.Write("<TD>Test1</TD>")
Response.Write("<TD>test 2</TD>")
Response.Write("<TD>test 3</TD>")
Response.Write("<TD>")
'insert dynamically created server checkbox control <asp:CheckBox
id='CheckBox1' runat='server'></asp:CheckBox></TD>
Response.Write("</TR>")
Response.Write("<TR>")
Response.Write("<TD>test 4</TD>")
Response.Write("<TD>test 5</TD>")
Response.Write("<TD>test 6</TD>")
Response.Write("<TD>")
'insert dynamically created dropdown server control <asp
ropDownList
id='DropDownList1' runat='server'>
'<asp:ListItem></asp:ListItem>
'<asp:ListItem Value='VA'>VA</asp:ListItem>
'<asp:ListItem Value='MD'>MD</asp:ListItem>
'<asp:ListItem Value='DC'>DC</asp:ListItem>
'</asp
ropDownList>
Response.Write("</TD>")
Response.Write(" </TR>")
Response.Write("</TABLE>")
End Sub
Any help would be greatly appreciated!
Chris Thunell
(e-mail address removed)
in one of the cells i would like to put a dynamically created server
control. The amount of rows is variable... so i could have 10 rows /
controls. How do i create a server control that goes into the appropriate
grid cell?
Example:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Response.Write("<TABLE id='Table1' cellSpacing='1' cellPadding='1'
width='300' border='1'>")
Response.Write("<TR>")
Response.Write("<TD>Test1</TD>")
Response.Write("<TD>test 2</TD>")
Response.Write("<TD>test 3</TD>")
Response.Write("<TD>")
'insert dynamically created server checkbox control <asp:CheckBox
id='CheckBox1' runat='server'></asp:CheckBox></TD>
Response.Write("</TR>")
Response.Write("<TR>")
Response.Write("<TD>test 4</TD>")
Response.Write("<TD>test 5</TD>")
Response.Write("<TD>test 6</TD>")
Response.Write("<TD>")
'insert dynamically created dropdown server control <asp
id='DropDownList1' runat='server'>
'<asp:ListItem></asp:ListItem>
'<asp:ListItem Value='VA'>VA</asp:ListItem>
'<asp:ListItem Value='MD'>MD</asp:ListItem>
'<asp:ListItem Value='DC'>DC</asp:ListItem>
'</asp
Response.Write("</TD>")
Response.Write(" </TR>")
Response.Write("</TABLE>")
End Sub
Any help would be greatly appreciated!
Chris Thunell
(e-mail address removed)