I am having a problem with Query Strings in a ASP.net application VB.net.
Here is a simplified version of the scenario:
1) A user navigates to the page using a hyperlink in an email.
2) The page loads and pulls up the Quote from the Query String (Quote Number = 12345). Code looks like this:
Dim QryStringFound As Integer
Dim QuoteNumber As Integer
QryStringFound = 0
QuoteNumber = 0
QuoteNumber = Request.QueryString("QuoteNumber")
If QuoteNumber > 0 Then
QryStringFound = 1
If QryStringFound = 1 Then
Me.txtQuote.Text = QuoteNumber
'This code loads the Quote information using the Quote Number in the textbox.
3) The user decides to look at another quote, but when the page relaods the Query String, QuoteNumber=12345 is still there so it pulls up Quote Number 12345 again.
How do I make the QueryString only execute the first time the page is loaded?