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.
The problem was the following code which was in the code behind:
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