Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

ASP JScript QueryString ?

string

  • Please log in to reply
No replies to this topic

#1 RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1311 posts
  • Location:C:\Countries\US
  • Programming Language:C, Java, C++, PHP, Python, JavaScript

Posted 30 March 2012 - 11:16 PM

To access the query string, one needs to use the Request.QueryString collection, but any search I've done so far returns how to do that using VBScript ASP, not JScript ASP :thumbdown: ; I don't want to learn VBScript, and besides, I already have almost all of the site written in JScript so far.

Can anyone please tell me how to access query fields from ASP JScript (JavaScript)?


I've tried this:
Request.QueryString["place"]
, etc., but that just returns 'undefined' , even though I did include that field in the URL. It's not fair that just about every example of ASP is written in VBScript :sad: .


Thanks in advance.

---------- Post added 03-31-2012 at 12:16 AM ---------- Previous post was 03-30-2012 at 10:55 PM ----------

Okay, I got the answer already. This link helped some:
HTTP Server Variables

It's
Request.QueryString("place")
, even though it's JavaScript; I don't get how it works, since QueryString is a collection and not a method, but it worked.

Thanks anyway.
  • 0
Regards,
RR





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download