htmltextwriter help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,
can someone please show me how to write this to a stringbuilder using the
htmltextwriter:
<ul><li>test</li></ul>

thanks,
rodchar
 
Hello rodchar,

try this

StringBuilder sb = new StringBuilder();
HtmlTextWriter hw = new HtmlTextWriter(new StringWriter(sb));
hw.Write("<ul><li>test</li></ul>");

r> show me how to write this to a stringbuilder using the
r> htmltextwriter:
r> <ul><li>test</li></ul>
---
WBR,
Michael Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Back
Top