web.config文件中自定义一个错误页面
我在web.config文件中自定义一个错误页面defaultRedirect="/error/customerrorpage.aspx,我想把e.Message错误信息传给它,有什么办法
<customErrors mode="On" defaultRedirect="./errorpages/GeneralError.htm">
<error statusCode="404" redirect="/errorpages/FileNotFound.htm" />
<error statusCode="403" redirect="/errorpages/GeneralError.htm" />
<error statusCode="500" redirect="/errorpages/GeneralError.htm" />
</customErrors>
你可以看http://www.aspxboy.com/default.aspx?module=q3rvadfef34fdrf
Create Custom Error Reporting Pages in ASP.NET by Using Visual C# .NET
http://support.microsoft.com/default.aspx?scid=kb;en-us;306355
<customErrors mode="On" defaultRedirect="./errorpages/GeneralError.htm">
<error statusCode="404" redirect="/errorpages/FileNotFound.htm" />
<error statusCode="403" redirect="/errorpages/GeneralError.htm" />
<error statusCode="500" redirect="/errorpages/GeneralError.htm" />
</customErrors>
你可以看http://www.aspxboy.com/default.aspx?module=q3rvadfef34fdrf
Create Custom Error Reporting Pages in ASP.NET by Using Visual C# .NET
http://support.microsoft.com/default.aspx?scid=kb;en-us;306355