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. how to get URL ?

how to get URL ?

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
6 Posts 5 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.
  • J Offline
    J Offline
    Jintal Patel
    wrote on last edited by
    #1

    hi i want to get the posted url... I have one page Which i called from many pages. on cancel button or on Save button i want to go back page from which i have called .. example: if i m on Default Page and go to Login..then After Login it should be go back to Default.. means i want code to get Posted Url which i got from system variables or function not userDefined code

    Jintal Patel

    L 1 Reply Last reply
    0
    • J Jintal Patel

      hi i want to get the posted url... I have one page Which i called from many pages. on cancel button or on Save button i want to go back page from which i have called .. example: if i m on Default Page and go to Login..then After Login it should be go back to Default.. means i want code to get Posted Url which i got from system variables or function not userDefined code

      Jintal Patel

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Hi Jintal, You can try this.. Request.UrlReferrer.AbsolutePath VIJ

      J 1 Reply Last reply
      0
      • L Lost User

        Hi Jintal, You can try this.. Request.UrlReferrer.AbsolutePath VIJ

        J Offline
        J Offline
        Jintal Patel
        wrote on last edited by
        #3

        hi thanks..i got the solution

        Jintal Patel

        G 1 Reply Last reply
        0
        • J Jintal Patel

          hi thanks..i got the solution

          Jintal Patel

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          You should check the value that you get from the referrer key. Some browsers/routers/antivirus-softare removes the referrer value from the html header, so you should handle the case when the referrer is empty.

          --- single minded; short sighted; long gone;

          S S 2 Replies Last reply
          0
          • G Guffa

            You should check the value that you get from the referrer key. Some browsers/routers/antivirus-softare removes the referrer value from the html header, so you should handle the case when the referrer is empty.

            --- single minded; short sighted; long gone;

            S Offline
            S Offline
            Sandeep Akhare
            wrote on last edited by
            #5

            Here experience counts :)

            Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

            1 Reply Last reply
            0
            • G Guffa

              You should check the value that you get from the referrer key. Some browsers/routers/antivirus-softare removes the referrer value from the html header, so you should handle the case when the referrer is empty.

              --- single minded; short sighted; long gone;

              S Offline
              S Offline
              Sathesh Sakthivel
              wrote on last edited by
              #6

              Well said Guffa. Got my 5.

              SSK. Anyone who says sunshine brings happiness has never danced in the rain.

              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