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 Can I get The Previous Page URL???

How Can I get The Previous Page URL???

Scheduled Pinned Locked Moved ASP.NET
questionhtml
8 Posts 6 Posters 1 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.
  • V Offline
    V Offline
    Vanamaindia
    wrote on last edited by
    #1

    :confused:I've Two pages,One is HTML and Other One is ASPX page..When I'm Clicking Button on html Page it Redirect to aspx page..Here is the prblm..I want to see the HTML Page name in aspx page??? How Can I???

    C I S L 4 Replies Last reply
    0
    • V Vanamaindia

      :confused:I've Two pages,One is HTML and Other One is ASPX page..When I'm Clicking Button on html Page it Redirect to aspx page..Here is the prblm..I want to see the HTML Page name in aspx page??? How Can I???

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You would need to pass it on the URL

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      1 Reply Last reply
      0
      • V Vanamaindia

        :confused:I've Two pages,One is HTML and Other One is ASPX page..When I'm Clicking Button on html Page it Redirect to aspx page..Here is the prblm..I want to see the HTML Page name in aspx page??? How Can I???

        I Offline
        I Offline
        Imran Khan Pathan
        wrote on last edited by
        #3

        Vanamaindia wrote:

        How Can I???

        You can get it by

        string preURL=Request.UrlReferrer.ToString();

        Best regard pAthan

        please don't forget to vote on the post that helped you.

        1 Reply Last reply
        0
        • V Vanamaindia

          :confused:I've Two pages,One is HTML and Other One is ASPX page..When I'm Clicking Button on html Page it Redirect to aspx page..Here is the prblm..I want to see the HTML Page name in aspx page??? How Can I???

          S Offline
          S Offline
          Sun Rays
          wrote on last edited by
          #4

          Hi, try this.. string url = Request.ServerVariables["HTTP_REFERER"];

          Thanks, Sun Rays To get something you must have to try once. My Articles

          V 1 Reply Last reply
          0
          • S Sun Rays

            Hi, try this.. string url = Request.ServerVariables["HTTP_REFERER"];

            Thanks, Sun Rays To get something you must have to try once. My Articles

            V Offline
            V Offline
            Vanamaindia
            wrote on last edited by
            #5

            It's Not Working yar

            M 1 Reply Last reply
            0
            • V Vanamaindia

              It's Not Working yar

              M Offline
              M Offline
              Michael Sync
              wrote on last edited by
              #6

              Have you checked my reply?? I have tested and it is working.. http://www.codeproject.com/script/comments/forums.asp?msg=2340337&forumid=12076#xx2340337xx

              Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

              1 Reply Last reply
              0
              • V Vanamaindia

                :confused:I've Two pages,One is HTML and Other One is ASPX page..When I'm Clicking Button on html Page it Redirect to aspx page..Here is the prblm..I want to see the HTML Page name in aspx page??? How Can I???

                L Offline
                L Offline
                lakshmichawala
                wrote on last edited by
                #7

                plz repeat the question clearly

                V 1 Reply Last reply
                0
                • L lakshmichawala

                  plz repeat the question clearly

                  V Offline
                  V Offline
                  Vanamaindia
                  wrote on last edited by
                  #8

                  It is Clear.....I can Search in Google..

                  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