技术文章
首页
关于我们
网站模板
客户案例
网站建设
程序开发
联系我们
技术文章
seo
asp.net
JavaSript
asp
网站建设
asp同时显示数据库连接错误和页面错误
时间:2009-03-28 点击:1750
<%
If Err.Number <> 0 Then
Response.Clear
Select Case Err.Number
Case 8
'指定错误号,在这里处理自定义错误
Case Else
'一般错误
If IsObject(objConnection) Then
If objConnection.Errors.Count > 0 Then
%>
<B>Database Connection Object</B>
<%
For intLoop = 0 To objConnection.Errors.Count - 1
%>
错误号: <%= objConnection.Errors(intLoop).Number %><BR>
错误描述: <%= objConnection.Errors(intLoop).Description %><BR>
错误源: <%= objConnection.Errors(intLoop).Source %><BR>
SQL状态: <%= objConnection.Errors(intLoop).SQLState %><BR>
本地错误: <%= objConnection.Errors(intLoop).NativeError %><P>
<%
Next
End If
End If
If Err.Number <> 0 Then
%>
<B>Page Error Object</B><BR>
错误号 <%= Err.Number %><BR>
错误描述 <%= Err.Description %><BR>
错误源<%= Err.Source %><BR>
错误行<%= Err.Line %><P>
<%
End If
End Select
End If
%>
下拉框选择其它, 激活文本框
按回车键焦点跳到下一个控件
javascript动态添加控件和属性
让两个div层的高度一样
alert弹出的对话框
> 返回
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络
Product
All Rights Reserved