Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Question about the URL string? Can a website be aware of what the user enters by hand in the URL string...

Question about the URL string? Can a website be aware of what the user enters by hand in the URL string...

Scheduled Pinned Locked Moved ASP.NET
questioncom
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    basilmir
    wrote on last edited by
    #1

    Question about domain names - any way to know where the user came from? I have multiple domains on a region/language basis. The website is located in a folder. Is there any way for it to know where the user came from? (without user interaction) Ex: www.qwerty.uk -> Default.aspx gets fired go to i do not know where www.qwerty.ti -> Default.aspx gets fired go to somewhere over the rainbow inside the same site Can the adress be passed to the website like a string or something or is it unaware of it? To sum it up: I have www.qwerty.com as the main site. There are two smaller sites www.qwerty.tk and www.qwerty.ti which people can access. I want my site to know where the user comes from. Did he type www.qwerty.tk and set the language to "this" or did he type www.qwerty.ti and set the language to that.

    S OriginalGriffO B 3 Replies Last reply
    0
    • B basilmir

      Question about domain names - any way to know where the user came from? I have multiple domains on a region/language basis. The website is located in a folder. Is there any way for it to know where the user came from? (without user interaction) Ex: www.qwerty.uk -> Default.aspx gets fired go to i do not know where www.qwerty.ti -> Default.aspx gets fired go to somewhere over the rainbow inside the same site Can the adress be passed to the website like a string or something or is it unaware of it? To sum it up: I have www.qwerty.com as the main site. There are two smaller sites www.qwerty.tk and www.qwerty.ti which people can access. I want my site to know where the user comes from. Did he type www.qwerty.tk and set the language to "this" or did he type www.qwerty.ti and set the language to that.

      S Offline
      S Offline
      sashidhar
      wrote on last edited by
      #2

      As far as my understanding You want the name of the page from last visited page/site ..? If it is in your domain i.e. if you can handle the code in both the sites You can make use of query string..! create a query string from lastVisited and set it..! Just pass the querystring last page visited value..! If this is not your answer looking for sorry..!

      LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

      1 Reply Last reply
      0
      • B basilmir

        Question about domain names - any way to know where the user came from? I have multiple domains on a region/language basis. The website is located in a folder. Is there any way for it to know where the user came from? (without user interaction) Ex: www.qwerty.uk -> Default.aspx gets fired go to i do not know where www.qwerty.ti -> Default.aspx gets fired go to somewhere over the rainbow inside the same site Can the adress be passed to the website like a string or something or is it unaware of it? To sum it up: I have www.qwerty.com as the main site. There are two smaller sites www.qwerty.tk and www.qwerty.ti which people can access. I want my site to know where the user comes from. Did he type www.qwerty.tk and set the language to "this" or did he type www.qwerty.ti and set the language to that.

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #3

        you can use the javascript document.referrer[^] but it can be turned off by the browser settings. If it isn't turned off, it gives you the last web site visited. [edit]Oops: spelled referrer incorrectly[/edit]

        No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones "Rumour has it that if you play Microsoft CDs backwards you will hear Satanic messages.Worse still, is that if you play them forwards they will install Windows"

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        1 Reply Last reply
        0
        • B basilmir

          Question about domain names - any way to know where the user came from? I have multiple domains on a region/language basis. The website is located in a folder. Is there any way for it to know where the user came from? (without user interaction) Ex: www.qwerty.uk -> Default.aspx gets fired go to i do not know where www.qwerty.ti -> Default.aspx gets fired go to somewhere over the rainbow inside the same site Can the adress be passed to the website like a string or something or is it unaware of it? To sum it up: I have www.qwerty.com as the main site. There are two smaller sites www.qwerty.tk and www.qwerty.ti which people can access. I want my site to know where the user comes from. Did he type www.qwerty.tk and set the language to "this" or did he type www.qwerty.ti and set the language to that.

          B Offline
          B Offline
          basilmir
          wrote on last edited by
          #4

          It has to be done in asp.net code. Something like here http://www.west-wind.com/weblog/posts/132081.aspx[^] I need to create a method that returns just the www.website.com part of the url string.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups