R
Russ
Hi,
I have created a Table webcontrol dynamically using code. Before rendering
it, I need to get at the HTML and do a couple of things manually. I've
tried a couple of methods to extract the HTML but things aren't working as
expected.
Dim W As New System.IO.StringWriter
Dim TS As New HtmlTextWriter(W)
Dim S as String
Table.RenderControl(TS)
W.Write(S)
When I run this, S = nothing, but the table renders fine on the page.
Any ideas?
Thanks,
Russ
I have created a Table webcontrol dynamically using code. Before rendering
it, I need to get at the HTML and do a couple of things manually. I've
tried a couple of methods to extract the HTML but things aren't working as
expected.
Dim W As New System.IO.StringWriter
Dim TS As New HtmlTextWriter(W)
Dim S as String
Table.RenderControl(TS)
W.Write(S)
When I run this, S = nothing, but the table renders fine on the page.
Any ideas?
Thanks,
Russ