Win2000错误代码显示方法

发表于:2007-06-30来源:作者:点击数: 标签:
请将WINNTHELPIISHELPCOMMON500-100.asp中做如下改动: % Dim bakCodepage bakCodepage = Session.Codepage Session.Codepage = 936 Response.Write Server.HTMLEncode(objASPError.Category) If objASPError.ASPCode Then Response.Write Server.HTMLEncode(
请将WINNTHELPIISHELPCOMMON500-100.asp中做如下改动:
<%
Dim bakCodepage
bakCodepage = Session.Codepage
Session.Codepage = 936
Response.Write Server.HTMLEncode(objASPError.Category)
If objASPError.ASPCode > "" Then Response.Write Server.HTMLEncode(", " & objASPError.ASPCode)
Response.Write Server.HTMLEncode(" (0x" & Hex(objASPError.Number) & ")" ) & "<br>"
If objASPError.ASPDescription > "" Then Response.Write Server.HTMLEncode(objASPError.ASPDescription) & "<br>"
blnErrorWritten = False

Response.Write "<B>"

If objASPError.Description > "" Then Response.Write Server.HTMLEncode(objASPError.Description) & "<br>"
@# Only show the Source if it is available and the request is from the same machine as IIS

原文转自:http://www.ltesting.net