Click here to Skip to main content
15,897,518 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to restrict image folder from direct access Pin
Neeraj Arora26-Aug-08 20:34
Neeraj Arora26-Aug-08 20:34 
AnswerRe: how to restrict image folder from direct access Pin
Abhishek Sur26-Aug-08 21:00
professionalAbhishek Sur26-Aug-08 21:00 
GeneralRe: how to restrict image folder from direct access Pin
Neeraj Arora26-Aug-08 21:10
Neeraj Arora26-Aug-08 21:10 
AnswerRe: how to restrict image folder from direct access Pin
N a v a n e e t h26-Aug-08 21:05
N a v a n e e t h26-Aug-08 21:05 
GeneralRe: how to restrict image folder from direct access Pin
Neeraj Arora26-Aug-08 21:08
Neeraj Arora26-Aug-08 21:08 
GeneralRe: how to restrict image folder from direct access Pin
N a v a n e e t h26-Aug-08 23:30
N a v a n e e t h26-Aug-08 23:30 
GeneralRe: how to restrict image folder from direct access Pin
Neeraj Arora27-Aug-08 1:02
Neeraj Arora27-Aug-08 1:02 
AnswerRe: how to restrict image folder from direct access Pin
NeverHeardOfMe26-Aug-08 22:46
NeverHeardOfMe26-Aug-08 22:46 
There are two ways of doing this - an easy "hack" and a "proper" way...

The easy way is simply to save your images with randomly assigned (GUID-type thing) filenames which can't be guessed. This doesn't stop people linking directly to your images once they know the filename of course, but unless your images are highly popular that is unlikely to be a problem, but it will stop them from finding images until you reveal the address.

The proper way is to write a custom handler; you can find an example here[^]. Note though that depending on your version of IIS you may need to perform some steps differently - that article assumes IIS6; once you get above this you need to write your config file differntly, for one thing...
QuestionSuggestion for continous printing Pin
Jagwinder Walia26-Aug-08 20:29
Jagwinder Walia26-Aug-08 20:29 
AnswerRe: Suggestion for continous printing Pin
N a v a n e e t h26-Aug-08 21:07
N a v a n e e t h26-Aug-08 21:07 
GeneralRe: Suggestion for continous printing Pin
Jagwinder Walia26-Aug-08 21:28
Jagwinder Walia26-Aug-08 21:28 
QuestionThe server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) for VB DLL Pin
Jai Sankar N26-Aug-08 20:18
Jai Sankar N26-Aug-08 20:18 
Questionfil uploade with update panel of ajax Pin
UD(IA)26-Aug-08 20:09
UD(IA)26-Aug-08 20:09 
AnswerRe: fil uploade with update panel of ajax Pin
Brij26-Aug-08 20:30
mentorBrij26-Aug-08 20:30 
GeneralRe: fil uploade with update panel of ajax Pin
UD(IA)26-Aug-08 21:45
UD(IA)26-Aug-08 21:45 
GeneralRe: fil uploade with update panel of ajax Pin
Brij26-Aug-08 22:01
mentorBrij26-Aug-08 22:01 
GeneralRe: fil uploade with update panel of ajax Pin
UD(IA)26-Aug-08 22:09
UD(IA)26-Aug-08 22:09 
AnswerRe: fil uploade with update panel of ajax Pin
Abhishek Sur26-Aug-08 21:24
professionalAbhishek Sur26-Aug-08 21:24 
GeneralRe: fil uploade with update panel of ajax Pin
UD(IA)26-Aug-08 22:01
UD(IA)26-Aug-08 22:01 
AnswerRe: fil uploade with update panel of ajax Pin
Tripathi Swati26-Aug-08 23:36
Tripathi Swati26-Aug-08 23:36 
GeneralRe: fil uploade with update panel of ajax Pin
UD(IA)27-Aug-08 1:18
UD(IA)27-Aug-08 1:18 
GeneralRe: fil uploade with update panel of ajax Pin
Tripathi Swati27-Aug-08 1:23
Tripathi Swati27-Aug-08 1:23 
GeneralRe: fil uploade with update panel of ajax Pin
UD(IA)27-Aug-08 1:39
UD(IA)27-Aug-08 1:39 
QuestionSave DataGridView data into Excel Sheet Pin
S.Aijaz26-Aug-08 19:30
S.Aijaz26-Aug-08 19:30 
AnswerRe: Save DataGridView data into Excel Sheet Pin
Tripathi Swati26-Aug-08 23:43
Tripathi Swati26-Aug-08 23:43 

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.