惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Check Point Blog
有赞技术团队
有赞技术团队
博客园 - 三生石上(FineUI控件)
博客园_首页
博客园 - 【当耐特】
WordPress大学
WordPress大学
月光博客
月光博客
博客园 - 叶小钗
S
SegmentFault 最新的问题
雷峰网
雷峰网
H
Help Net Security
宝玉的分享
宝玉的分享
A
About on SuperTechFans
IT之家
IT之家
J
Java Code Geeks
Hugging Face - Blog
Hugging Face - Blog
D
DataBreaches.Net
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
T
The Blog of Author Tim Ferriss
B
Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Y
Y Combinator Blog

博客园 - 活靶子.Net

2008我的收获了3个本儿,一堆朋友 把ASP.NET MVC的路由利用配置维护起来 jQuery从此更牛了 【分享】如何创建自己的Visual Studio 2005/2008配色 我学Linq to SQL做的demo Latest preview of the ASP.Net MVC available on CodePlex 提供我现用的Vs配色(灰黑色调)下载,有兴趣的朋友玩玩。 使用AzMan找不到Microsoft.Interop.Security.AzRoles的解决方法 MS Ajax 客户端生命周期 使用dotNetZipLib轻松压缩目录/文件夹 批量 移动 msn 联系人 IE8 BETA1 来了.... Telligent 发布了 CMS 系统 DbEntry.Net---又一个国产开源ORM数据访问及 WEB 框架 [2007最后一博]Url地址重写,利用HttpHander手工编译页面并按需生成静态HTML文件 FckEditor,远程图片下载,插件 上班族饮食十大“夺命”恶习 一系列SQL SERVER SQL 的分析文章 员工辞职的十大原因!
CustomError可以设置绝对路径
活靶子.Net · 2008-04-23 · via 博客园 - 活靶子.Net

偶然发现web.config内自定义错误信息页面
  <customErrors mode="RemoteOnly"     defaultRedirect="503.aspx">
   <error statusCode="404" redirect="404.aspx"/>
  </customErrors>

可以设置成
  <customErrors mode="RemoteOnly"     defaultRedirect="503.aspx">
   <error statusCode="404" redirect="http://www.aspxboy.com/404.aspx"/>
  </customErrors>
这样的绝对路径.
看了一下 CustomErrorsSection 中的代码

internal string GetRedirectString(int code)
{
    
string absoluteRedirect = null;
    
if (this.Errors != null)
    
{
        CustomError error 
= this.Errors[code.ToString(CultureInfo.InvariantCulture)];
        
if (error != null)
        
{
            absoluteRedirect 
= GetAbsoluteRedirect(error.Redirect, this.basepath);
        }

    }

    
if (absoluteRedirect == null)
    
{
        absoluteRedirect 
= this.DefaultAbsolutePath;
    }

    
return absoluteRedirect;
}

发现事实如此.
期间有个小笑话,我试验的时候顺手输入了个http://x x.com/404.aspx (两个xx中没空格)这样到一个页面跳入了一个xx站点,吓我一大跳. ,工位附近有MM,不知道有否影响本人正值地形象哦