Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Server variable riddle - extract typed in querystring after url

Reply
Thread Tools

Server variable riddle - extract typed in querystring after url

 
 
jason
Guest
Posts: n/a
 
      10-30-2003
Could someone help me figure out how to utilize .servervarialbles (or
another creative method) to do the following:

If someone types into browser (or clicks a querystring hyperlink) with the
following....

http://www.boat.com/?cat=CrazyHorse

....* Is it possible to extract the ?cat=Crazyhorse
from the typed in or clicked url when he reaches that root page?

I thought perhaps this could work but no:

CrewedCat = Request.ServerVariables("QUERY_STRING") Response.Write "
" & CrewedCat & "
"


 
Reply With Quote
 
 
 
 
SiteGuru
Guest
Posts: n/a
 
      10-30-2003
CrewedCat = Request.Querystring("cat")

--
--
Cheers!
SiteGuru
http://www.siteguru.co.uk
"jason" <> wrote in message
news:...
> Could someone help me figure out how to utilize .servervarialbles (or
> another creative method) to do the following:
>
> If someone types into browser (or clicks a querystring hyperlink) with the
> following....
>
> http://www.boat.com/?cat=CrazyHorse
>
> ...* Is it possible to extract the ?cat=Crazyhorse
> from the typed in or clicked url when he reaches that root page?
>
> I thought perhaps this could work but no:
>
> CrewedCat = Request.ServerVariables("QUERY_STRING") Response.Write "
> " & CrewedCat & "
> "
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mix statically typed with dynamically typed Yingjie Lan Python 4 01-29-2010 08:50 AM
Passing QueryString URL as a paremeter in QueryString Adeel Ahmad ASP General 1 03-07-2006 02:05 PM
Is there a class or method to construct url args or extract url args? Ken Varn ASP .Net 2 06-22-2005 12:26 PM
How can I add a row from a typed datatable to another instance of that typed datatable? Ersin Gençtürk ASP .Net 1 10-06-2004 01:11 PM
Extract filename from a filename typed by user =?Utf-8?B?Sm9l?= ASP .Net 1 08-23-2004 11:29 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57