asp错误,错误的参数个数或无效的参数属性值

来源:百度知道 编辑:UC知道 时间:2024/07/02 14:26:11
<%
if Request.QueryString("type")="del" then
BM_id=trim(request.QueryString("BM_id"))
if BM_id<>"" then
sql="delete from BM_User where BM_id=" & Clng(BM_id)
conn.Execute sql
end if
call CloseConn()
response.redirect "index.asp"

end if

const MaxPerPage = 20
dim currentPage,totalPage,totalPut,pagecount
sql="select * from BM_User order by BM_Date desc"
set NewsListRs = Server.Createobject("adodb.recordset")
NewsListRs.open sql,conn,1,1

if NewsListRs.EOF then
Response.Write("<p align=center>无报名信息!</p>")
else
currentPage = ReplaceStr(Request("page"))
if currentPage <> "" then
if not IsNumeric(currentPage) then
currentPage = 1
else
currentPage =

showpage2 currentPage, totalPage, MaxPerPage, totalPut, null
这个函数 有问题了
貌似
showpage2函数名字
currentPage当前页 数字形式
totalPage 共多少页 数字形式
MaxPerPage 这个应该是分页数量 也是数字形式
totalPut 这个貌似是 一共多少记录 数字形式
null 这个就不清楚了 自己检查一下吧

showpage2这个函数的参数个数和你调用的不一样,或者参数属性不一样啊,不明白 Q 37 30 83 845

这个 showpage2 在哪里?

你给出的代码里面,没有看到有关于 showpage2 的定义

这样的错误一半是 少些关键字 属性定义错误 属性不匹配 属性格式不对~
自己好好看看~ 遇到问题 要自己反复的琢磨 这样才能提高个人的水品~

查这个函数吧