I have to send a complex string via AJAX in ASP.NET MVC from my view to a particular controller action.
The string needs to contain all sorts of characters like < , > , & , " , ' .
I am using the following code in javascript :
var request = new Sys.Net.WebRequest();
request.set_url("/Controller/Action?Param=" + str) ; // str is the string to be sent
request.set_httpVerb("POST");
request.invoke();
But when I run the page, the AJAX request does not reach the action in the controller.
Can anyone tell how to achieve this?