Dim sb As New System.Text.StringBuilder()
Dim sw As New StringWriter(sb)
Dim hw As New Web.UI.HtmlTextWriter(sw)
ptable.RenderControl(hw)
and then sb.ToString()
"Rosau" wrote:
Could you please give me an example... how to use this RenderControl
Method and HtmlTextWriter, Thanks !!!
Patrick Steele wrote:
In article <11**********************@h48g2000cwc.googlegroups .com>,
au*****@hotmail.com says...
I create a table dynamically using VB, How do I get HTML code for
that table into a string variable ??? any sugestion, Thanks
You can use the RenderControl method and send it to an HtmlTextWriter
(which can be initialized to write to a StringWriter).
--
Patrick Steele
http://weblogs.asp.net/psteele