Click here to Skip to main content
15,917,645 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hallo,

I work on a small application displaying pdf documents. If a user does not have appropriate rights, the files are not created from the DB. If he tries to access this document (e.g. by clicking on a link from another pdf document), he gets a file not found page.
How can I display another page ("You do not have the rights to view this document") instead?
Posted

While this FILE NOT FOUND Error is generated you can manually redirect to your custom messaged page what you want... this is the first way...


the other way is like this...

http://www.asp.net/hosting/tutorials/displaying-a-custom-error-page-cs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900