Ajax POST request using ASP.net
Ok guys here is the skinny,
I am trying to use a "servlet" ASP.net page and post data to it using the xmlHTTPRequest object. Once I post to it how can I access the post parameters?
example:
Lets say this is my Javascript call
try
{
xmlHTTPSes=GetXmlHttpObject();
if (xmlHTTPSes == null)
{
alert ("Your browser does not support the XMLHttpRequest object. Please upgrade to a newer browser.");
return;
}
queryString="mode=changeValue";
xmlHTTPSes.onreadystatechange=responseSesVar;
xmlHTTPSes.open("POST","servlet.aspx",true);
xmlHTTPSes.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
xmlHTTPSes.send(queryString);
}
catch(e){alert(e.message());}
And I want to retrieve the mode value.
Thanks
"America... just a nation of two hundred million used car salesmen with all the money we need to buy guns and no qualms about killing anybody else in the world who tries to make us uncomfortable. " - Hunter S. Thompson
MCAD
IBM Business Partner