Click here to Skip to main content
15,911,848 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using CKEditor in a ASP.Net page to render another whole page which contain HTML Report inside the CKEditor.After rendering i will do what ever the changes i need. after that if i try to save it saving fine.

While saving if type special characters like /,@ then it is giving error. input string is not in correct format.

I want to save the whole content as it is.If i need to edit that data again i need to render the data what i saved with that special Characters(/,@ like these)....

Suggest me any one to overcome this situation. Thanks in Advance.

What I have tried:

I am using CKEditor in a ASP.Net page to render another whole page which contain HTML Report inside the CKEditor.After rendering i will do what ever the changes i need.
Posted
Updated 23-Jul-17 21:11pm

1 solution

For ASP.NET, use HTTPUtility.Encode(FCKeditor1.value) when you're saving to a database (will replace all < to <, etc), then use HTTPUtility.Decode(dbColumn) when you need to show the formatted text.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900