创建未找到文件页面 [英] creting a file not found page

查看:124
本文介绍了创建未找到文件页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我在一个显示pdf文档的小型应用程序上工作.如果用户没有适当的权限,则不会从数据库创建文件.如果他尝试访问此文档(例如,通过单击另一个pdf文档的链接),则会获得一个找不到文件"页面.
我该如何显示另一个页面(您无权查看此文档")?

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?

推荐答案

此文件未找到错误生成时,您可以手动重定向到您想要的自定义消息页面...这是第一种方法...


另一种方式是这样的...

http://www.asp.net/hosting/tutorials/displaying-a- custom-error-page-cs [ ^ ]
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[^]


选中此

http://support.microsoft.com/kb/306355 [ http://riderdesign.com/articles/displayarticle.aspx?articleid=1 [ ^ ]

http://weblogs.asp.net/erobillard/archive/2003/04/23/5992.aspx [ ^ ]
Check this

http://support.microsoft.com/kb/306355[^]

http://riderdesign.com/articles/displayarticle.aspx?articleid=1[^]

http://weblogs.asp.net/erobillard/archive/2003/04/23/5992.aspx[^]


这篇关于创建未找到文件页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆