I have an XML string given below. I am trying to post it to MVC controller through Ajax call.And the MVC controller has a string parameter only. My ajax code is given below.But it is not being able to process the request. How can I send XML string to Controller
var textdata = "<bb>tt</bb><ff>rr</ff>";
$.ajax({
url: '/AppVersionProtocolMethod/Test',
type: 'POST',
data : { xmlData : textdata},
success: function (datas) {
}
});
Thanks. -Soumya