URL Detection

Results 1 to 2 of 2

Thread: URL Detection

  1. #1
    Join Date
    Dec 1969

    Default URL Detection

    Is there a way to detect the name of the URL you are on that could be set to a variable?<BR><BR>Thanks<BR><BR>Greg

  2. #2
    Join Date
    Dec 1969

    Default RE: URL Detection

    Yes, use the SCRIPT_NAME servervariable (see http://www.4guysfromrolla.com/webtech/092298-3.shtml for more information on the Request.ServerVariables collection)<BR><BR>So, you could do:<BR><BR>You are visiting &#060;%=Request.ServerVariables("SCRIPT_NAME")%&#0 62;<BR><BR>or, in your instance:<BR><BR>&#060;%<BR>Dim strURL<BR>strURL = Request.ServerVariables("SCRIPT_NAME")<BR>%&#062;< BR><BR>Happy Programming!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts