I called generic handler (ashx) from javascript code as given below;
var xmlHttpReq = createXMLHttpRequest();
xmlHttpReq.open("GET", "hndlrCars.ashx, false);
xmlHttpReq.send(null);
xmlText = xmlHttpReq.responseText;
But i have to pass parameter (dropdown selectedvalue) from .aspx to generic handler’s “ProcessRequest” method.How can i do this?
You could pass it as a query string parameter:
And inside the handler retrieve it from the request: