htmltextwriter help

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
 
M

Michael Nemtsev

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top