|
-
Apr 7th, 2005, 05:37 PM
#1
Thread Starter
Not NoteMe
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.
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe
"I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
Have I helped you? Please Rate my posts. 
-
Apr 8th, 2005, 01:09 AM
#2
PowerPoster
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
-
Apr 8th, 2005, 01:33 AM
#3
Re: Request.QueryString
In C#,
string tmp = Request.QueryString["PersonID"];
-
Apr 8th, 2005, 05:12 AM
#4
Thread Starter
Not NoteMe
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!
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe
"I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
Have I helped you? Please Rate my posts. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|