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. prevent using back button

prevent using back button

Scheduled Pinned Locked Moved ASP.NET
help
5 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.
  • A Offline
    A Offline
    abdelhameed81
    wrote on last edited by
    #1

    i knw that this sounds crazy but i am preparing a web page for elections and i want the user after submitting his\her choices not to go back to the choices page to change the choices please help abdelhameed81

    I S B 3 Replies Last reply
    0
    • A abdelhameed81

      i knw that this sounds crazy but i am preparing a web page for elections and i want the user after submitting his\her choices not to go back to the choices page to change the choices please help abdelhameed81

      I Offline
      I Offline
      ic3b3rg3
      wrote on last edited by
      #2

      Use database instead. When a user makes a choice save this as an information for that user as "UserHasMadeChoice" column and make its value 1. Then when the user makes a choice first you control this value for that user. If UserHasMadeChoice is 1 then you show a warning like "You have already made a choice"

      N 1 Reply Last reply
      0
      • I ic3b3rg3

        Use database instead. When a user makes a choice save this as an information for that user as "UserHasMadeChoice" column and make its value 1. Then when the user makes a choice first you control this value for that user. If UserHasMadeChoice is 1 then you show a warning like "You have already made a choice"

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

        ic3b3rg3 wrote:

        Use database instead.

        Instead of what? Set a session variable to indicate the page visited then check it when the page loads, if it indicates a page has already been visted, then redirect to another page.


        only two letters away from being an asset

        1 Reply Last reply
        0
        • A abdelhameed81

          i knw that this sounds crazy but i am preparing a web page for elections and i want the user after submitting his\her choices not to go back to the choices page to change the choices please help abdelhameed81

          S Offline
          S Offline
          saloni289
          wrote on last edited by
          #4

          whenever user click bck button forward him to the same page using javascript function 'History.forward(+1)'

          Saloni

          1 Reply Last reply
          0
          • A abdelhameed81

            i knw that this sounds crazy but i am preparing a web page for elections and i want the user after submitting his\her choices not to go back to the choices page to change the choices please help abdelhameed81

            B Offline
            B Offline
            Britney S Morales
            wrote on last edited by
            #5

            open your site onto a browser page without controls, your users wont have the change to use the browsers bars

            keep Learning...

            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