Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 01, 2013 11:16 AM by jaydeep.choudhari
Feb 27, 2013 01:04 PM|LINK
I am writing ajax post function to call a MVC method from controller where I am passing HTML data as a parameter.
I can not send plain HTML as it gives Potentially Dangerous Request error.
I am sending it as escape( htmldata ) but at server side I am not able to get plain html using HttpUtility.HtmlDecode method.
So, How to encode html data from jQuery and decode it in c# code behind
Feb 27, 2013 01:09 PM|LINK
Solved -- encoding data using encodeURI from jQuery post and HttpUtility.UrlDecode in codebehind
Feb 28, 2013 02:32 AM|LINK
You can also use escape() and unescape(). More details, please refer to:
Mar 01, 2013 11:16 AM|LINK