how to use codebehind instead of "Back" button

Coreysan 1,816 Reputation points
2021-07-13T21:17:17.153+00:00

I have a one-page web app, with a submit button. When the button is clicked on, some parts of the page will change (header, grid information).
I'd like to write some code where an end user can click on a header (like the page title using <h1>) and it would act the same as the "back" button.

Is that possible?

Developer technologies | ASP.NET | Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Coreysan 1,816 Reputation points
    2021-07-13T23:03:37.917+00:00

    I found an answer - no need to answer. Sorry about this.


  2. Coreysan 1,816 Reputation points
    2021-07-15T18:22:06.85+00:00

    Albert,

    I'm trying to add my code, but I get an error message saying I don't have permissions!!!!

    I've tried several times to add comments and code, but it just won't allow it. Maybe it's because the code snippet has double quotes? Or
    something I'm unaware of?

    I'll convert my answer into an image and attach it that way. I hope that works...

    0 comments No comments

  3. Coreysan 1,816 Reputation points
    2021-07-15T18:30:08.413+00:00

    I've attached an image that shows the code. I hope that helps you. I just couldn't get this box to accept regular text.
    115148-code-image.jpg


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.