摘要:
<script language="javascript" type="text/javascript"> function btnClick() { var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); if (!xmlhttp) { alert("创建xmlhttp对象失败!"); return false; } xmlhttp.open("POST", "GetData1.ashx?ts=" + new 阅读全文
摘要:
为了不让错误信息直接展现给客户端,需要Web.Config中定义错误信息的配置,指定发生错误后转向的页面<customErrors mode="RemoteOnly" defaultRedirect="~/GenericErrorPage.htm"> <error statusCode="403" redirect="~/NoAccess.htm" /> <error statusCode="404" redirect="~/FileNotFound.ht 阅读全文