Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HtmlTextWriter how do you get it on your page?

Status
Not open for further replies.

shaunacg

Programmer
Aug 1, 2003
71
GB
Hi,

I need an HtmlTextWriter. Well actually I need a Wysiwig html text editor to display on my form. But first off I need this HtmlTextWriter. How do you get this? Anything I read about it seems quite complicated, is there an easier way?

Thanks
 
A HtmlTextWriter is just a rendering context. To use on in your page, overload the pages Render function which takes in a HtmlTextWriter, i.e. to your code behind for the page
add in
Code:
protected override void Render(HtmlTextWriter writer)
{
    writer.Write("This is some text");
}

but Im not sure if this is really what you are wanting to do?

K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top