G
Guest
I'm trying to convert a control I created programatically to a string format
so I place the created control to my page. I tried placeholder and it worked
fine, but I need to "render" the control to string format. I'm using
ASP.NET. Here's what I have.
Dim htmlSelect As New HtmlControls.HtmlSelect
htmlSelect.ID = "stage"
htmlSelect.DataSource = ds.Tables("approvalusers")
htmlSelect.DataValueField = "fname"
htmlSelect.DataBind()
' This line below does NOT work
Resonse.Write(htmlSelect)
Thanks!
so I place the created control to my page. I tried placeholder and it worked
fine, but I need to "render" the control to string format. I'm using
ASP.NET. Here's what I have.
Dim htmlSelect As New HtmlControls.HtmlSelect
htmlSelect.ID = "stage"
htmlSelect.DataSource = ds.Tables("approvalusers")
htmlSelect.DataValueField = "fname"
htmlSelect.DataBind()
' This line below does NOT work
Resonse.Write(htmlSelect)
Thanks!