I have problem sending XML data fron Ajax to ASP.NET MVC. Data is not sent. Ajax code:
`function SendXmlToServer(ServerXml) {
$.ajax({ url: "/Home/XmlData",
type: "POST",
processData: false,
data: { ResXml: ServerXml }, dataType: "xml",
success: function () {
alert("Successful");
return false;
}
})
}`
ASP.NET MVC code:
[HttpPost]
public ActionResult XmlData(string ResXml)
{
return null;
}
Why ResXml variable has null?