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. General Programming
  3. Visual Basic
  4. how to?

how to?

Scheduled Pinned Locked Moved Visual Basic
csstutorialquestionlearning
8 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.
  • S Offline
    S Offline
    SSN
    wrote on last edited by
    #1

    I have created an aspx page which displays the list of books in a grid when we search according to a search condition. If i click for details of the book it is displayed in another page. if I need to return to the page where the list is displayed usin a hyperlink or link button what should I do?

    C V J 3 Replies Last reply
    0
    • S SSN

      I have created an aspx page which displays the list of books in a grid when we search according to a search condition. If i click for details of the book it is displayed in another page. if I need to return to the page where the list is displayed usin a hyperlink or link button what should I do?

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

      You should start by asking in the ASP.NET forum. You will end up passing the details on the URL so the page goes to where you want it to.

      Christian Graus Please read this if you don't understand the answer I've given you "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
      • S SSN

        I have created an aspx page which displays the list of books in a grid when we search according to a search condition. If i click for details of the book it is displayed in another page. if I need to return to the page where the list is displayed usin a hyperlink or link button what should I do?

        V Offline
        V Offline
        V 2
        wrote on last edited by
        #3

        Hi try this one response.redirect(Request.ServerVariables("HTTP_REFERER").ToString) this will open the previous page for u Hope it will help....

        The Great Pleasure In Doing That Things That Other People Say U Can't By Doing This U Can Shut Their Mouth

        G 1 Reply Last reply
        0
        • V V 2

          Hi try this one response.redirect(Request.ServerVariables("HTTP_REFERER").ToString) this will open the previous page for u Hope it will help....

          The Great Pleasure In Doing That Things That Other People Say U Can't By Doing This U Can Shut Their Mouth

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

          Hardly... As you are doing a postback, the referrer will be the same page.

          Despite everything, the person most likely to be fooling you next is yourself.

          S 1 Reply Last reply
          0
          • S SSN

            I have created an aspx page which displays the list of books in a grid when we search according to a search condition. If i click for details of the book it is displayed in another page. if I need to return to the page where the list is displayed usin a hyperlink or link button what should I do?

            J Offline
            J Offline
            Jay Royall
            wrote on last edited by
            #5

            A quick and easy way to go back to the previous page is to use javascript, onClick="history.back()" But as Christian said, you should post on the correct forum in future.

            S 1 Reply Last reply
            0
            • J Jay Royall

              A quick and easy way to go back to the previous page is to use javascript, onClick="history.back()" But as Christian said, you should post on the correct forum in future.

              S Offline
              S Offline
              SSN
              wrote on last edited by
              #6

              yhanks for your suggestion. I will surely try this out. Tell me this "history.back()" is a predefined function or should we write the script?

              1 Reply Last reply
              0
              • G Guffa

                Hardly... As you are doing a postback, the referrer will be the same page.

                Despite everything, the person most likely to be fooling you next is yourself.

                S Offline
                S Offline
                SSN
                wrote on last edited by
                #7

                sorry but postback url doesnot take me to the previous page but it takes me to the page where I have to make the search again.

                G 1 Reply Last reply
                0
                • S SSN

                  sorry but postback url doesnot take me to the previous page but it takes me to the page where I have to make the search again.

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

                  If the URL of the page containing the search result doesn't represent that page uniquely (i.e. you just populate the result on postback), then your only option to return to that page is to use the history in the browser to go back, so that the post data is resent to recreate the page.

                  Despite everything, the person most likely to be fooling you next is yourself.

                  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