|
Thanks in advance.
Front End : Asp.net 4 (vb)
On a Page i have a button which redirects to another Page
response.redirect("Page2.aspx" + "?ID=" & DocumentID)
on Page2 load event through querystring i get the Document ID and Open the Document (PDF/IMAGE etc), My Problem is on this Page2, I want to have a button with back page link but the button does not show as the page is loaded, So is there any way to show back link along with the document.
To kill a DEER, You need Guns, knives, Ropes and many people to help But To kill
a DEAR,
You need just ignorance and silence
modified 27-Nov-12 2:50am.
|
|
|
|
|
If your users browsers allowing that you can use HTML5 History API
http://diveintohtml5.info/history.html
No more Mister Nice Guy... >: |
|
|
|
|
|
Thanks for the Post ,
Actually when Page opens it does not show any control on the Page, No button or any control , it hides the control on the page.
If it shows control then on that i can use any script or code, but now its hiding every thing from the page and just showind the document (image/text/pdf) etc.
To kill a DEER, You need Guns, knives, Ropes and many people to help But To kill
a DEAR,
You need just ignorance and silence
|
|
|
|
|
Then open this document in frame and add any controls you want on frame parent.
No more Mister Nice Guy... >: |
|
|
|
|
|
Tried , different Div, panel and frame but problem is when page loads it does not show any control.
To kill a DEER, You need Guns, knives, Ropes and many people to help But To kill
a DEAR,
You need just ignorance and silence
|
|
|
|
|
Obviously if your doing
response.redirect("Page2.aspx" + "?ID=" & DocumentID)
And then Page2 fetch file from somewhere and just spit it out to response, there is no HTML only this document.
This is how you doing it right?
No more Mister Nice Guy... >: |
|
|
|
|
|
Yes
To kill a DEER, You need Guns, knives, Ropes and many people to help But To kill
a DEAR,
You need just ignorance and silence
|
|
|
|
|
Then as I wrote before, instead of redirecting to Page2 you should add frame to your previous page and open this Document (Page2) in that frame.
No more Mister Nice Guy... >: |
|
|
|
|
|
Ok, Thanks
To kill a DEER, You need Guns, knives, Ropes and many people to help But To kill
a DEAR,
You need just ignorance and silence
|
|
|
|
|
Load your PDF/IMAGE etc into an inline frame
<iframe src="name of your pdf document or image" />
Then UNDER the iframe add this clientside code....
<input type="button" id="btnBack" onclick="window.history.back()" />
|
|
|
|
|
Thanks
To kill a DEER, You need Guns, knives, Ropes and many people to help But To kill
a DEAR,
You need just ignorance and silence
|
|
|
|
|
|