Click here to Skip to main content
15,886,626 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I have an app with a drop down box when the user clicks on a selection a response.redirect("mypdffile.pdf") occurs. After I am sent to the pdf file and click the back arrow in the browser I return to the app. But, when I click on any button or link to get to another part of the app, the pdf file always opens. Any suggestions would be greatly appreciated.

Thanks in advance,
D-Bar
Posted
Comments
Debug and see why clicking on any control executes that redirect code.
Wombaticus 26-Jul-14 8:20am    
It's a tricky one this - but really, rather than redirecting users after a post back, you might do better to add a javascript function to redirect them from the cleint side instead.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900