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 7599969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:47:43+00:00 2026-05-30T22:47:43+00:00

I have a production system which has a button to go a quoting system

  • 0

I have a production system which has a button to go a quoting system on a different site. The button calls

Response.Redirect("https://www.???????.com/program/EditQuote.aspx?QuoteNumber=" & Trim(txtQuoteNum.Text), False)

It works perfectly the first time, but after that (if I close the tab that opened) the target page comes up with almost all the data missing from the page which should have been loaded in the page_load event of that page. Here is the code in the page_load event

If Not IsPostBack Then
   If Request.QueryString("QuoteNumber") IsNot Nothing AndAlso IsNumeric(Request.QueryString("QuoteNumber")) Then
      Session("LoadQuoteNumber") = Request.QueryString("QuoteNumber")
   End If
End If

The only way it works again is if I close the browser and start again. It works on my dev machine on localhost so I don’t know how to try to follow what’s going on to debug this type of problem which only happens in the production environment.

  • 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-30T22:47:44+00:00Added an answer on May 30, 2026 at 10:47 pm

    The problem was the following code which was in the code behind:

    Private _refreshState As Boolean
    Private _isRefresh As Boolean
    
    Protected Overrides Sub LoadViewState(ByVal savedState As Object)
        Dim AllStates As Object() = savedState
        MyBase.LoadViewState(AllStates(0))
        _refreshState = Boolean.Parse(AllStates(1))
        _isRefresh = _refreshState = Session("__ISREFRESH")
    End Sub
    
    Protected Overrides Function SaveViewState() As Object
        Session("__ISREFRESH") = _refreshState
        Dim AllStates() As Object = New Object(2) {}
        AllStates(0) = MyBase.SaveViewState
        AllStates(1) = Not (_refreshState)
        Return AllStates
    End Function
    

    It was put in to solve a problem we had when the user refreshed the page. Here’s the article which gave is the code: http://www.codeproject.com/Articles/10240/Detecting-Page-Refresh

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

Sidebar

Related Questions

We have a distributed .net system which consists of several solutions, each with different
We have a production Server which has ASP.net 2.0 Application running with Ajax 1.0
I currently have a system in which one rails 2.3.2 has a database with
We have a query that is taking around 5 sec on our production system,
I have an asp.net app that uses System.IO.Path.GetTempFileName() for temporary files. In the production
I have a BizTalk 2006 app which has a sendport using MSMQ. I have
I have an Glassfish ESB based CASA app running in production system (Win 2k3)
I'm currently working on a Drupal site (6.*), which when in production mode will
I have an application which logs changes to records in the production table to
We have a production machine and are trying to slowly introduce some 3.0 and

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.