I'm dynamically building an html table in the code behind and need to render it into html so that I can use that also in the code behind. I'm tyring to use the control.RenderControl() method but I'm having a hard time.
Below is what I've tried so far.
But the HtmlTextWriter must have a System.IO.TextWriter object passed to it. When I try to create a System.IO.TextWriter object I get an error saying that I cannot create a new instance of a must inherit class.
What is the easiest way of doing what I'm trying to do here.
writer = New HtmlTextWriter()
Dim strTest As String = writer.ToString