I am creating two htmlcode sections. How do I empty the StringWriter
of the HtmlWriter so I dont have to have two StringWriters?
I tried Flush and Close but either I was using them wrong or they
dont work.
Check it out below:
StringWriter sw = new StringWriter();
StringWriter sw2 = new StringWriter();
HtmlTextWriter hw = new HtmlTextWriter(sw);
hw.WriteBeginTag("img");
hw.WriteAttribute("border","0");
hw.WriteAttribute("src","images/bookclosed.gif");
hw.Write('>');
strSW = sw.ToString();
hw = new HtmlTextWriter(sw2);
hw.WriteBeginTag("img");
hw.WriteAttribute("border","0");
hw.WriteAttribute("src","images/collectionclosed.gif");
hw.Write('>');
strCC = sw2.ToString();
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/