I used the AjaxControlToolkit html editor on my page:
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
TagPrefix="cc1" %>
<cc1:Editor ID="txtjobdesc" runat="server" AutoFocus="False" />
I sent the values 开发者_C百科to the database as txtjobdesc.Content.Tostring();
But, if I type just a paragraph in the editor it displays the same Description. If i use any Bullets and Highlighted words it displays the bulleted words, Overlapping words below.
How do I make it display as a html description?
pls help me out..
Send editor output to database after encoding it as Server.HTMLencode(editor.content) and get back it as Server.HTMLDecode(editor.content)
I'm damn sure it will work.
if using sql set the datattype of the column to text. Sql2005/2008, i am sure . earlier version not sure
You have two ways to do this: You may use NText SQL type or use Nvarchar(MAX) data type, which I believe the later one is so much better as it behaves as a Nvarchar type and provides better string manipulation. Otherwise, the varchar has capacity of at max 8000 bytes.
精彩评论