Click here to Skip to main content
15,920,217 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Problem with asp.net validators .net 2.0 Pin
VivekNema27-May-08 18:22
VivekNema27-May-08 18:22 
AnswerRe: Problem with asp.net validators .net 2.0 Pin
Ravi_2127-May-08 19:35
Ravi_2127-May-08 19:35 
QuestionDisplaying an image in a Datalist instead of a checkbox field? Pin
Nostrom027-May-08 6:32
Nostrom027-May-08 6:32 
QuestionASP.net to C#.net problem Pin
Verghese27-May-08 5:54
Verghese27-May-08 5:54 
AnswerRe: ASP.net to C#.net problem Pin
Christian Graus27-May-08 17:43
protectorChristian Graus27-May-08 17:43 
AnswerRe: ASP.net to C#.net problem Pin
Vasudevan Deepak Kumar27-May-08 19:04
Vasudevan Deepak Kumar27-May-08 19:04 
GeneralRe: ASP.net to C#.net problem Pin
Verghese29-May-08 6:26
Verghese29-May-08 6:26 
QuestionSQL "WHERE" Statement Boolean filtering Pin
Nostrom027-May-08 5:50
Nostrom027-May-08 5:50 
AnswerRe: SQL "WHERE" Statement Boolean filtering Pin
J4amieC27-May-08 6:15
J4amieC27-May-08 6:15 
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 

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.