R Rosau Oct 5, 2006 #1 I create a table dynamically using VB, How do I get HTML code for that table into a string variable ??? any sugestion, Thanks
I create a table dynamically using VB, How do I get HTML code for that table into a string variable ??? any sugestion, Thanks
P Patrick Steele Oct 6, 2006 #2 I create a table dynamically using VB, How do I get HTML code for that table into a string variable ??? any sugestion, Thanks Click to expand... You can use the RenderControl method and send it to an HtmlTextWriter (which can be initialized to write to a StringWriter).
I create a table dynamically using VB, How do I get HTML code for that table into a string variable ??? any sugestion, Thanks Click to expand... You can use the RenderControl method and send it to an HtmlTextWriter (which can be initialized to write to a StringWriter).
R Rosau Oct 6, 2006 #3 Could you please give me an example... how to use this RenderControl Method and HtmlTextWriter, Thanks !!!
Could you please give me an example... how to use this RenderControl Method and HtmlTextWriter, Thanks !!!
G Guest Oct 6, 2006 #4 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 said: Could you please give me an example... how to use this RenderControl Method and HtmlTextWriter, Thanks !!! Click to expand...
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 said: Could you please give me an example... how to use this RenderControl Method and HtmlTextWriter, Thanks !!! Click to expand...
R Rosau Oct 7, 2006 #5 Thanks a lot! it is working perfect!!! pb said: 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() Click to expand...
Thanks a lot! it is working perfect!!! pb said: 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() Click to expand...