marjoh
March 13th, 2008, 04:54 AM
Hi all,
I've made a webpage where you can search for pdf-files. The result is listed in a datagrid. To view a pdf matching the searchcriteria, you simply click on a row in the datagrid, and then the pdf is viewed within the browser.
Problem is that when I push the browsers backbutton I don't come back to the searchresultview, but to the page BEFORE the searchresult.
I'm using Response.BinaryWrite to view the pdf (byteformat), which seems to overwrite the current browser view. When hitting the backbutton, the browser doesn't "remember" the former view, but throws me back to the page before that page ("2 steps back"). Is there a way for me to create a blank page (within the browser), and then view the pdf in that page? That should allow me to go back to the former view when I push the back button...
Or is there another smooth way I can keep the searchresultview and come back to that view when pushing the backbutton?
I don't want to open a new window when watching the pdf.
I've made a webpage where you can search for pdf-files. The result is listed in a datagrid. To view a pdf matching the searchcriteria, you simply click on a row in the datagrid, and then the pdf is viewed within the browser.
Problem is that when I push the browsers backbutton I don't come back to the searchresultview, but to the page BEFORE the searchresult.
I'm using Response.BinaryWrite to view the pdf (byteformat), which seems to overwrite the current browser view. When hitting the backbutton, the browser doesn't "remember" the former view, but throws me back to the page before that page ("2 steps back"). Is there a way for me to create a blank page (within the browser), and then view the pdf in that page? That should allow me to go back to the former view when I push the back button...
Or is there another smooth way I can keep the searchresultview and come back to that view when pushing the backbutton?
I don't want to open a new window when watching the pdf.