请将代码府上,
strSql是存储过程吗?如果是,那么就因该看看存储过程设计的有没有问题。
call CreateLinkHtml(split(id,",")(i),"block") 参数感觉有点乱,不符合变成规范,最好先split(id,",")给一个变量,然后再参数赋值时,在用 xx(i)调用。
。
建议修改
dim spit
spit=split(id,",")
for i=0 to ubound(spit)
'建议在此设一个输出 response.write i &ubound(spit)
conn.execute(strSql)
conn.execute(strSql2)
call CreateLinkHtml(spit(i),"block")
next
CreateLinkHtml过程看看有没有这个变量,如果有,可以改一下,看看。
可能在函数中改变了变量的值