I have made a call to a .NET DLL (class library project) using XmlHttpRequest:
function httpGet(theUrl, sendParam) {
var xmlHttp = null;
xmlHttp = new XMLHttpRequest();
xmlHttp.open('POST', theUrl, false);
xmlHttp.setRequestHeader('Content-Type', 'text/xml');
xmlHttp.send(sendParam);
var strHtml = xmlHttp.responseText;
xmlHttp = null; // always clear the XmlHttp object when you are done to avoid memory leaks
return strHtml;
}
How could I retrieve the parameters at server side that are sent using .send() method of the above request?
Additional Information:
Basically in the Sage CRM it calls a DLL (eware.dll) in the browser to render output for Sage CRM pages. And if we want to call our custom server side assembly we have to provide DLL name and method name in query string like this: http://localhost/installname/eware.dll?SID=xxxxx&Act=123&dotnetdll=dllname&dotnetfunc=methodname
. So the question is in this scenario.
Later I found the way to retrieve the querystring parameter on the server side (library project/DLL) using Sage CRM .NET API, however still wandering if we could have been able to retrieve the xmlHttpRequest.send() parameters in the server side library porject (DLL)?