Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6155453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:26:18+00:00 2026-05-23T20:26:18+00:00

I have an issue with the browser [BACK] button. Let me explain. There is

  • 0

I have an issue with the browser [BACK] button. Let me explain.

There is a page called ManageClient.aspx. That page contains an address list of both [child] client addresses (child meaning the client you’re viewing), and parent client addresses (clients the child inherits from). When someone clicks to view a client in the ManageClient.aspx page, there is no query string (but I did add a variable to fix my problem here). However, with some JavaScript, there is a session variable called Session(“Id”) that eventually gets set in the ManageClient.aspx page.

When the user clicks on an Address on the ManageClient.aspx page, they are taken to the AddressEditor.aspx page, and an “Id” variable in the query string is passed indicating the address id.

The hyperlinks in the address editor have been broken for quite some time. That is my goal–to fix them so the AddressEditor.aspx populates for the correct client. So to attempt to fix this, I added a query string variable to the ManageClient.aspx page called “Id”. This “Id” variable indicates the client id of the client you’re editing. Furthermore, I also added a query string variable to the AddressEditor.aspx page called “ClientId”. Because the client AddressEditor is in the same Wizard workflow as the ManageClient.aspx page, I needed to set that “ClientId” query string parameter so when I reach the AddressEditor.aspx page, I then can set the Session(“ClientId”) session variable so that if the user continues in the wizard for that client, they are in the correct context. This works great.

What doesn’t work is when the user enters the ManageClient.aspx page for the [child] client, and then clicks on a parent client address (sending them to AddressEditor.aspx in the context of the parent client), and then clicks the [BACK] button (sending them back to the ManageClient.aspx page). I want them to be back to the context of the child client, not the parent client. I put a breakpoint in the ManageClient.aspx Page_PreRender event, and it does in fact get called. But when the page renders, the page populates with the parent client, not the child client. But if I highlight the URL bar, and hit [ENTER], the page renders as a child client (AWESOME) so it must have populated my session variable as a child client correctly (but rendered incorrectly), but I want it to do this when they clicked the [BACK] button. How do I fix the ManageClient.aspx page for this workflow I just described?

Here is the Page_PreRender event:

Private Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.PreRender

    Dim clientId As Integer = CType(Request.QueryString("ClientId").ToString, Integer)
    If clientId > 0 Then
        Session("ClientId") = clientId
        Me.LIMSClientId = clientId
    End If

End Sub
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:26:18+00:00Added an answer on May 23, 2026 at 8:26 pm

    This was very simple. The lists in the page were being built in Page_Load which was called after Page_PreRender–where the session variable was being set. I just had to place the code I had in that Page_PreRender event above the code where the data lists in the page were being built.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an issue on our page whereby the first time a button posts
I have an issue with .scrollTop() I have a page that stores the current
I currently have a issue with firefox, where all other browser behave in the
I have an issue with watin test that should browse for pdf and upload
I have issue that is reproduced on g++. VC++ doesn't meet any problems. So
I have an issue that is driving me a bit nuts: Using a UserProfileManager
I have a RoR site that loads a splash page on the first visit.
I have an issue with my Rails application and the browser's cache: When a
Anyone have some sample code for an in-app browser that they would like to
I have a simple three page asp.net webforms site and having an issue with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.