Thursday, August 21, 2008

RichTextBox HtmlArea

Want a Rich TextBox in a normal <textarea> control
visit this link

http://www.codeproject.com/KB/scripting/htmlarea.aspx

for Rendering the HTML back into the formatted manner
<label id="emailsumPrev" runat="server" ><%= HttpUtility.HtmlDecode(getRequestFormValue()) %></label>


THe HtmlArea value will be viewed from Server side through

Page.Previous.Request.Form["htmlarea1"] and only if the EnableViewState of the htmlarea is set to True

public string getRequestFormValue()
{
return Page.Previous.Request.Form["htmlarea1"];
}

No comments: