浏览器怎么编辑文档 ASP.NET入门教程2.6.3 通过浏览器编辑站点配置[2]
ASP.NET入门教程2.6.3 通过浏览器编辑站点配置[2]
![浏览器怎么编辑文档 ASP.NET入门教程2.6.3 通过浏览器编辑站点配置[2]](http://img.zhputi.com/uploads/ee2b/ee2bb669626d5b27af255e146dfbd25941682.jpg)
在这个 试一试 部分 将看到ASP NET Administration Tool是如何编辑Web config文件的
(l)在VWD的Solution Explorer中 将下载文件(C:BegASPNET WroxUnited)中的missingPage aspx导入站点 ( )单击Solution Explorer顶部的图标 打开Web Site Administration Tool ( )导航到Application Configuration页面 单击Define Default Error Page链接 ( )选择 Specify a URL to use as the default error page 并选择MissingPage aspx作为错误发生时重定向用户的页面 ( )单击Save按钮 ( )返回到VWD 打开Web config文件 ( )向下滚动直到找到<customErrors>部分 注意defaultRedirect属性的值已经变为在管理工具中所选页面的路径
<customErrors mode= RemoteOnly == missingPage aspx > </customErrors>
操作回顾
这个管理工具只是编辑Web config中的部分设置的一个比较友好的方法 在使用这个管理工具修改应用程序的错误处理设置的时候 它将编辑Web config文件──而不用开发人员手动编辑XML数据!
ASP NET 入门教程完整版
lishixinzhi/Article/program/net/201311/15257