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. Problems with "back" and "forward" buttons on browser

Problems with "back" and "forward" buttons on browser

Scheduled Pinned Locked Moved ASP.NET
questionsysadminsecurityhelp
2 Posts 2 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.
  • L Offline
    L Offline
    lnong
    wrote on last edited by
    #1

    I'm working on a file management application that has several *.aspx pages. On the main page, it shows a list of files and folders. When the user clicks on "remove file" button, a new form (removefile.aspx) loads up and has a button to remove the selected file(s). This action physically deletes the file(s) from the server. There's also a "done" button on that page that reloads the main page and refreshes the files/folders list. However, if the user does not use the "done" button to go back, but uses the broswer's "back" button, the main page loads but the files/folders list is not refreshed. How can I make it refresh? One more problem is that I often get this message when using the "back" and "forward" buttons on the broswer: "The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you. To resubmit your information and view this Web page, click the Refresh button. " Lastly, when I click on "refresh" button of the browser, it says "page cannot be refreshed without resending the info. Click retry to send thei info again." How do I prevent all these problems?

    J 1 Reply Last reply
    0
    • L lnong

      I'm working on a file management application that has several *.aspx pages. On the main page, it shows a list of files and folders. When the user clicks on "remove file" button, a new form (removefile.aspx) loads up and has a button to remove the selected file(s). This action physically deletes the file(s) from the server. There's also a "done" button on that page that reloads the main page and refreshes the files/folders list. However, if the user does not use the "done" button to go back, but uses the broswer's "back" button, the main page loads but the files/folders list is not refreshed. How can I make it refresh? One more problem is that I often get this message when using the "back" and "forward" buttons on the broswer: "The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you. To resubmit your information and view this Web page, click the Refresh button. " Lastly, when I click on "refresh" button of the browser, it says "page cannot be refreshed without resending the info. Click retry to send thei info again." How do I prevent all these problems?

      J Offline
      J Offline
      Jonathan321
      wrote on last edited by
      #2

      Hi, I've just replied to another post regarding a similar problem, but if you're working on a browser-based application and want to control Back & Forward, I have found that the simplest and most effective solution is to have your application launch itself in a browser configured with no toolbar buttons or menus - eliminating the User's ability to go back and forward whenever they choose. This have saved me from lots of headaches with the same problem on many projects in the past, and it even gives you more space for your gorgeous pages! You will also need to capture keypresses & mouseclicks to prevent keyboard shortcuts and the buttons on some mice from performing the same action. Regards, Jon.;P

      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