Click here to Skip to main content
       

ASP.NET

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
GeneralRe: Back Page link with Attachment asp.net 4memberεїзεїзεїз18 Nov '12 - 20:38 
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

GeneralRe: Back Page link with Attachment asp.net 4membern.podbielski18 Nov '12 - 21:11 
Then open this document in frame and add any controls you want on frame parent.
No more Mister Nice Guy... >: |

GeneralRe: Back Page link with Attachment asp.net 4memberεїзεїзεїз18 Nov '12 - 21:50 
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

GeneralRe: Back Page link with Attachment asp.net 4membern.podbielski18 Nov '12 - 22:14 
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... >: |

GeneralRe: Back Page link with Attachment asp.net 4memberεїзεїзεїз19 Nov '12 - 21:29 
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

GeneralRe: Back Page link with Attachment asp.net 4membern.podbielski19 Nov '12 - 21:33 
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... >: |

GeneralRe: Back Page link with Attachment asp.net 4memberεїзεїзεїз19 Nov '12 - 23:02 
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

AnswerRe: Back Page link with Attachment asp.net 4memberZaf Khan26 Nov '12 - 9:02 
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()" />

GeneralRe: Back Page link with Attachment asp.net 4memberεїзεїзεїз26 Nov '12 - 20:49 
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

GeneralRe: Back Page link with Attachment asp.net 4memberZaf Khan27 Nov '12 - 7:55 
Your welcome

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web01 | 2.6.130523.1 | Last Updated 24 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid