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. Browser "Back" Botton - how to control

Browser "Back" Botton - how to control

Scheduled Pinned Locked Moved ASP.NET
tutorial
3 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.
  • A Offline
    A Offline
    Abdul Rhman Alsri
    wrote on last edited by
    #1

    In our application, the user registeration taking 5 pages the user is moving through and filling data. Suppose when user is reached to the last page(no. 5), the user can returns back to the first no. 1 page. For that, we want to disable user coming back to that first no.1 page, we want to control the back button and redirect it to a particular page

    N J 2 Replies Last reply
    0
    • A Abdul Rhman Alsri

      In our application, the user registeration taking 5 pages the user is moving through and filling data. Suppose when user is reached to the last page(no. 5), the user can returns back to the first no. 1 page. For that, we want to disable user coming back to that first no.1 page, we want to control the back button and redirect it to a particular page

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      If you perform a search for this topic you will find many resources. Generally, you need to set a variable of some sort, perhaps a session variable, and check it in the page load and redirect if necessary.


      I know the language. I've read a book. - _Madmatt

      1 Reply Last reply
      0
      • A Abdul Rhman Alsri

        In our application, the user registeration taking 5 pages the user is moving through and filling data. Suppose when user is reached to the last page(no. 5), the user can returns back to the first no. 1 page. For that, we want to disable user coming back to that first no.1 page, we want to control the back button and redirect it to a particular page

        J Offline
        J Offline
        Jamil Hallal
        wrote on last edited by
        #3

        Using JavaScript you can go back or forward in the browser's navigation history. Most of the time you want to go back one page. For doing that, use the following code:

        history.go(-1);

        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