Link to home
Start Free TrialLog in
Avatar of sjs091654
sjs091654

asked on

refresh of aspx page

I have a web aspx page that has a button that once it is clicked, it updates a table and response.redirects to a pdf file.

When I click on the back arrow of the in the pdf, the field that is supposed to be displayed is not displayed until I manually hit the F5 key.

In another words, the 'Complete' label is not visible when you go into the page, but needs to be visible when I return from the pdf.
Avatar of Gauthier
Gauthier

That behavior is browser dependent, but the back button on recent browser use the cached rendering and doesn't refresh or execute code.
To prevent that just add an onunload event
Avatar of sjs091654

ASKER

How do I do that?   I also noticed that the 'Complete' label will appear if I don't redirect to another page on clicking the button
ASKER CERTIFIED SOLUTION
Avatar of Gauthier
Gauthier

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial