I have a form that opens in a new window, the user selects some records from a list box, clicks ok and the form closes and reloads the parent form. The problem I'm encountering is that when the parent form is reloaded, it doesn't simply reload the form as it would the first time the page is opened. Instead, the page is reloaded based on the the last page load event from cache. This is causing a problem because it will execute every sub tha that was executed the last go around.
For example: The user clicks a reset button that resets all the fields, the code executes and everything is reset. The user then clicks the "select multiple records" link which opens the "Select Multiple Records" form. The user selects a few records and clicks ok. The desired effect is that when the parent form reloads, a label shows that indicates that multiple records were selected. But instead, the page is reloaded based on the last page load event in the cache which includes the reset.click event. So the page is reset and nothing shows.
Is there a way to reload the page without using the cache? Any help would be greatly appreciated. Thanks!
Here's my code:
strJScript &= "window.opener.location.reload();"
strJScript &= "window.close()"
strJScript &= "</script" & ">"
If (Not IsClientScriptBlockRegistered("clientScript")) Then