Skip to content

intercept browser back button #4877

Closed
Closed

Description

@itg-assistant

Jean Vallee asked 2025-10-04 01:04:51 UTC

I thought I posted this earlier today but cannot find it again. I was hoping I has gotten a response....

I am building a wisej asp.net .Netframework website. I'm using v 3.5.23.

Single page app. Lots of linkedlabels and menu navigation. Nothing really complex.

But I cannot figure out how to have the browser navigate correctly when the back button is clicked.

It gives the user a blank page instead of the page they came from.

My framework idea is: when the user clicks to open another page, I should capture the full url in a public string variable before opening the desired page (using Show()).

Then when they click the browser's back button, intercept that click and navigate to the url held in the variable (and update the variable to the new url.)

I've spent hours wth ChatGPT and CoPilot and neither one can figure it out.

As always, ideas and sample code is greatly appreciated!

Thanks!

Activity

  1. itg-assistant commented on Jun 17, 2026

    @itg-assistant
    Author

    Julie (ITG) answered 2025-10-06 14:24:34 UTC

    See this forum post: https://wisej.com/support/question/disable-back-button-on-browser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions