deepti
deepti

Reputation: 729

Asp.net request.querystring

I am using request.querystring just to access a parameter which I am passing from one page to other.

It is giving me an error.

Non-invocable member 'System.Web.HttpRequest.QueryString' cannot be used like a method.

I am using C#.

Any help would be appreciated!

Upvotes: 11

Views: 13841

Answers (1)

Jackson Pope
Jackson Pope

Reputation: 14640

It sounds like you're writing:

Request.QueryString("Param");

When you want:

Request.QueryString["Param"];

Note the square brackets.

Upvotes: 32

Related Questions