Results 1 to 2 of 2

Thread: Retrieve URL in ASP

  1. #1

    Thread Starter
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188

    Exclamation Retrieve URL in ASP

    Hey All,

    How do you retrieve the full URL of the page?
    So i can say you are currently at "www.blah.com"

    thanks for any help
    ciao
    b

  2. #2
    Addicted Member
    Join Date
    Jul 2002
    Location
    Grand Rapids, MI
    Posts
    166
    I think this will work.

    host = Response.Write(Request.ServerVariables("HTTP_HOST"))
    path = Response.Write(Request.ServerVariables("PATH_INFO"))

    Response.Write (host & path)

Posting Permissions

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



Click Here to Expand Forum to Full Width