asp 标准表达式中数据类型不匹配
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>信息删除</title>
</head>
<!--#include file="conn1.asp" -->
<body>
<div style="position:absolute; top:130px; left:0px; width:980px;" align="center">
<form method="post" action="">
<table width="600" border="1" align="center">
<tr>
<td width="200" bgcolor="9ECCB7"><div align="center"><font face="宋体"><strong>请输入编号:</strong></font></div></td>
<td width="200"><input type="text" name="no" size="28" >
</td>
<td width="200"><input name="submit" type="submit" value="确定"></td>
</tr>
</table>
</form>
</center>
<div align="center">
<%
'如果没有输入姓名和密码,就不执行下列语句
If Trim(Request("no"))<>"" Then
Dim strSql
strSql ="Delete From xzb where ip='" & Request("no") & "' "
'这里利用Execute方法的一个参数,用number返回该操作影响的记录数。
Dim number
conn.Execute strSql,number
If number=0 Then
Response.Write "没有此记录,请重新输入"
Else
Response.Write "<p align='center'>共有" & number & "条数据被删除"
End If
End If
%>
</div>
</div>
</body>
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E07)
[Microsoft][ODBC Microsoft Access Driver] 标准表达式中数据类型不匹配。
/aaaa/03/SC.asp, 第 31 行