Jaquarh
Jaquarh

Reputation: 6693

C# ASP.NET - Using a handler for Requests

I am trying to use a Handler for AJAX. So the idea is that my JQuery sends a $.get request to the Handler but I am having some trouble capturing the request.

var example = Request.QueryString["getParam"].ToString();

Returns:

The name 'Request' does not exist in the current context

Is there a specific way I can capture the Request in a Handler?

Upvotes: 0

Views: 66

Answers (1)

Ashkan Mobayen Khiabani
Ashkan Mobayen Khiabani

Reputation: 34180

var example = context.Request.QueryString["getParam"].ToString();

Upvotes: 4

Related Questions