Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.88 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Cannot read parameters from Msxml2.XMLHTTP ajax call
  2. function InvokeHandler() {
  3.       InitXmlHttp();
  4.       xmlhttp.onreadystatechange = XMLHttpRequestCompleted;
  5.       xmlhttp.open("GET", "BookmarkletHandler.ashx?target=ww1", true);
  6.       xmlhttp.send();
  7.   }
  8.        
  9. function InvokeHandler() {
  10.       InitXmlHttp();
  11.       xmlhttp.onreadystatechange = XMLHttpRequestCompleted;
  12.       xmlhttp.open("GET", "BookmarkletHandler.ashx", true);
  13.       xmlhttp.send("target=ww1");
  14.   }
  15.  
  16.  
  17. function InvokeHandler() {
  18.       InitXmlHttp();
  19.       xmlhttp.onreadystatechange = XMLHttpRequestCompleted;
  20.       xmlhttp.open("POST", "BookmarkletHandler.ashx", true);
  21.       xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded")
  22.       xmlhttp.send("target=ww1");
  23.   }
  24.        
  25. public void ProcessRequest(HttpContext context)
  26. {
  27.    String param = context.Request.QueryString["target"]; --> this gives null
  28. }