Where you trying to render this html code ?
Assume you have Web User control there you want to render html control,
override your render method in your Usercontrol and , that even handler will
giver you Htmlwriter as one of the param
use writer.writeline(yourHtmlTablestring);
Note: If you want to create html control define all the heml basic elements
as string
like below
string lblHtml = "<TD nowrap><font size=2 face=Verdana>{0}</font></TD>";
string txtBoxHtml = "<TD nowrap><INPUT id={0} type=text name={0} value={1}
disabled class=input></TD>";
and use string .format method to substitue the value
writer.WriteLine(string.Format(lblHtml,name));
writer.WriteLine(string.Format(txtBoxHtml,"txtBox" +name,val));
Thanks
Baski
"Aur_Ros" <au*****@hotmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
>I am trying to get a string that contains the HTML code generated for a
table control, Need help, examples about how to use render method and
string builder, Thanks !!!