11

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!

0

1 Answer 1

32

It sounds like you're writing:

Request.QueryString("Param");

When you want:

Request.QueryString["Param"];

Note the square brackets.

Sign up to request clarification or add additional context in comments.

1 Comment

I did this and get an error Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.