Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

html editor properties

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 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..

like image 934
Innova Avatar asked Nov 06 '22 12:11

Innova


1 Answers

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.

like image 160
Mohan Sharma Avatar answered Nov 15 '22 11:11

Mohan Sharma