
Untitled
By: a guest on
May 5th, 2012 | syntax:
None | size: 0.88 KB | hits: 15 | expires: Never
Cannot read parameters from Msxml2.XMLHTTP ajax call
function InvokeHandler() {
InitXmlHttp();
xmlhttp.onreadystatechange = XMLHttpRequestCompleted;
xmlhttp.open("GET", "BookmarkletHandler.ashx?target=ww1", true);
xmlhttp.send();
}
function InvokeHandler() {
InitXmlHttp();
xmlhttp.onreadystatechange = XMLHttpRequestCompleted;
xmlhttp.open("GET", "BookmarkletHandler.ashx", true);
xmlhttp.send("target=ww1");
}
function InvokeHandler() {
InitXmlHttp();
xmlhttp.onreadystatechange = XMLHttpRequestCompleted;
xmlhttp.open("POST", "BookmarkletHandler.ashx", true);
xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded")
xmlhttp.send("target=ww1");
}
public void ProcessRequest(HttpContext context)
{
String param = context.Request.QueryString["target"]; --> this gives null
}