Click here to Skip to main content
15,887,398 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: SQL "WHERE" Statement Boolean filtering Pin
Nostrom027-May-08 6:34
Nostrom027-May-08 6:34 
QuestionCrystal Reports Components Version Update (VS 2005 Prof Ed) Pin
Jay_se27-May-08 5:15
Jay_se27-May-08 5:15 
Questionhow can we set master page inside contentplaceholder of another masterpage Pin
Be_Aman27-May-08 4:33
Be_Aman27-May-08 4:33 
AnswerRe: how can we set master page inside contentplaceholder of another masterpage Pin
James Simpson28-May-08 4:24
James Simpson28-May-08 4:24 
Questionupgraded to vwd 2008 and framework3.5 Pin
eyeseetee27-May-08 4:24
eyeseetee27-May-08 4:24 
AnswerRe: upgraded to vwd 2008 and framework3.5 Pin
N a v a n e e t h27-May-08 6:27
N a v a n e e t h27-May-08 6:27 
GeneralRe: upgraded to vwd 2008 and framework3.5 Pin
eyeseetee27-May-08 21:38
eyeseetee27-May-08 21:38 
QuestionUsing HttpHandler to catch right-click requests Pin
NeverHeardOfMe27-May-08 3:03
NeverHeardOfMe27-May-08 3:03 
Hello,

Excuse the re-post - I asked this a few weeks ago, but stupidly on a Sunday, and got no response, so trying again...

I have cribbed an HttpHandler class to protect certain files on my website, very much along the lines of this article[^]...
(in fact extended to include Word docs, Zip files etc, but the essential code is the same.)

All works fine but for one thing:

If a logged-in user clicks a link to, say, a Word doc, it will open in a new window, and they can then use "File/Save As.." to download it onto their computer. That's fine. But if they right-click the link and choose "Save target as.." and try to save it like that, they will get an "Access denied" message (or "no.jpg" in the example code I linked to.)

What do I need to alter in the code to allow this, without compromising the rest of it?

Presumably, right-clicking means that context.Request.ServerVariables["HTTP_REFERER"] returns null/Nothing.... what else could I use to check for this?

thanks for any ideas..
P
QuestionHow to connect an ASP.Net mobile application to sql server 2005 Pin
Nicole_H27-May-08 2:36
Nicole_H27-May-08 2:36 
AnswerRe: How to connect an ASP.Net mobile application to sql server 2005 Pin
eyeseetee27-May-08 2:45
eyeseetee27-May-08 2:45 
QuestionAsp.net Forum Source Code Pin
Tiger45627-May-08 2:20
Tiger45627-May-08 2:20 
AnswerRe: Asp.net Forum Source Code Pin
eyeseetee27-May-08 2:42
eyeseetee27-May-08 2:42 
AnswerRe: Asp.net Forum Source Code Pin
Vasudevan Deepak Kumar27-May-08 6:04
Vasudevan Deepak Kumar27-May-08 6:04 
QuestionRunning excel reports without installing excel in Server Pin
K.P.Kannan27-May-08 2:02
K.P.Kannan27-May-08 2:02 
Questionscript src=js-file.aspx [modified] Pin
peakss27-May-08 1:54
peakss27-May-08 1:54 
AnswerRe: script src=js-file.aspx Pin
Christian Graus27-May-08 3:29
protectorChristian Graus27-May-08 3:29 
GeneralRe: script src=js-file.aspx Pin
peakss27-May-08 19:48
peakss27-May-08 19:48 
Questionbi-lingual implementation in asp.net Pin
Harikrk27-May-08 1:05
Harikrk27-May-08 1:05 
AnswerRe: bi-lingual implementation in asp.net Pin
leppie27-May-08 1:46
leppie27-May-08 1:46 
QuestionDefault Button in a page Pin
Archana New to Dotnet27-May-08 0:47
Archana New to Dotnet27-May-08 0:47 
AnswerRe: Default Button in a page Pin
eyeseetee27-May-08 1:06
eyeseetee27-May-08 1:06 
AnswerRe: Default Button in a page Pin
leppie27-May-08 1:47
leppie27-May-08 1:47 
Questionasp.net, c#, javascript Pin
Ramesh Kumar Patel27-May-08 0:42
Ramesh Kumar Patel27-May-08 0:42 
AnswerRe: asp.net, c#, javascript Pin
Vasudevan Deepak Kumar27-May-08 19:10
Vasudevan Deepak Kumar27-May-08 19:10 
QuestionCreating new Controls Pin
Jon8127-May-08 0:01
Jon8127-May-08 0:01 

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.