-
Request.QueryString
I've got this:
string tmp = Request.QueryString("PersonID");
and get this error:
Compiler Error Message: CS0118: 'System.Web.HttpRequest.QueryString' denotes a 'property' where a 'method' was expected
What am i doing wrong, i've looked at examples and can't see any difference.
-
Re: Request.QueryString
Code:
dim tmp as String
tmp = request.querystring("PersonID")
is right for VB, dont know about C#, maybe square brackets are needed instead of rounds ones :D
-
Re: Request.QueryString
In C#,
string tmp = Request.QueryString["PersonID"];
-
Re: Request.QueryString
Ah, of course. I was thinking QueryString was a method, but as the error message says, it's a property.
Silly me. Thanks guys!