Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieve document's full URL

Status
Not open for further replies.

Stoemp

Programmer
Sep 25, 2002
389
BE
Hi

I'm trying to put a link on top of every page where the visitor can change the language whenever he wants. Therefore I have to take the full URL and add "&taal=NL" for example. I tried it with 'Request.ServerVariables("URL"), but when I do that, the querystring variables from the URL don't come with it. All my documents come with a 'section=' querystring variable that defines what piece of the page should be displayed. Therefore it's necessary to have the querystring variables too. Is this possible with asp?

Thanks

Steven
 
why not request.querystring("taal")???

Known is handfull, Unknown is worldfull
 
What do you mean, vbkris? I don't understand...

ChrisHirst: Thanks for the solution. It works just fine. Why couldn't I think of that myself??? Probably too much cafeine...
 
for FULL url as it in in the address or location bar :

" & request.servervariables("SERVER_NAME") & Request.Servervariables("SCRIPT_NAME") & "?" & Request.Querystring()

that should be spot on, might be missing a "/" between server and script

[thumbsup2]DreX
aKa - Robert
if all else fails, light it on fire and do the happy dance!
 
Thank you guys for replying. Everything works fine now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top