使用aspx .net处理文件夹和子文件夹 [英] Handle folder and subfolder with aspx .net
本文介绍了使用aspx .net处理文件夹和子文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我要处理此链接,我对自己的网站有疑问
http://www.wastuae.com/abc/ab/2
http://www.wastuae.com/abc/cf/2
http://www.wastuae.com/abc/ui/3
此页面的所有处理内容http://www.wastuae.com/defaut.aspx
没有abc文件夹或任何其他文件夹.
I have questions about my site if I want to handle this link
Http://www.wastuae.com/abc/ab/2
Http://www.wastuae.com/abc/cf/2
Http://www.wastuae.com/abc/ui/3
All handle with this page Http://www.wastuae.com/defaut.aspx
Without I have abc folder Or any other folder
推荐答案
设置您的web.config,以便为您提供针对404错误(未找到文件)的自定义错误页面.然后,您可以按照404加载顺序读取失败的地址,然后重定向到相应的处理程序页面
Set up your web.config to give you a custom error page for 404 errors (file not found). You can then read the failed address in the 404 load sequence and redirect to the appropriate handler page
这篇关于使用aspx .net处理文件夹和子文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文