I have a download button in my page from which if the button is clicked, a dialog popup in firefox or internet explorer appears saying, "Do you want to open or save file?" .. The popup is from the browser itself.
The scenario is that, if the user clicks logout on the site, is it possible to fail the download if he clicks saves or open file. It seems like it cannot be prevented for me..
i think you cannot prevent started download from a user that is no more authenticated ! if the download starts that means there is a direct connection between client and server.
developerjer...
0 Points
1 Post
ASP.NET Canceling download
Aug 18, 2012 05:24 AM|LINK
I have a download button in my page from which if the button is clicked, a dialog popup in firefox or internet explorer appears saying, "Do you want to open or save file?" .. The popup is from the browser itself.
The scenario is that, if the user clicks logout on the site, is it possible to fail the download if he clicks saves or open file. It seems like it cannot be prevented for me..
Thanks in advance.
Ahmed Abdulr...
Participant
906 Points
232 Posts
Re: ASP.NET Canceling download
Aug 18, 2012 05:48 AM|LINK
i think you cannot prevent started download from a user that is no more authenticated ! if the download starts that means there is a direct connection between client and server.
Damn Code
Participant
1883 Points
323 Posts
Re: ASP.NET Canceling download
Aug 18, 2012 05:53 AM|LINK
Hi, friend
I'm not sure if that available or not. whatever check these links hope get help.
Please remember to Mark the replies as Answers if they help & unmark them if they provide no help.
Ruchira
All-Star
43050 Points
7036 Posts
MVP
Re: ASP.NET Canceling download
Aug 20, 2012 11:55 AM|LINK
Hello,
No. If the user already send the request and got the file as the response, logging off will not prevent it from downloading.
Not only for you. That's the expected behaviour.
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.