注册 登录
编程论坛 ASP技术论坛

此问题第三次发 高手去哪里啦

inking0801 发布于 2011-02-21 00:07, 543 次点击
<%
lb=Request.QueryString("lb")
if request("act")="del" then
set rc=server.createobject("adodb.recordset")
id=Request.QueryString("id")
sql="select * from cp where elid="&id
rc.open sql,conn,2,3
rc.delete
rc.update
Response.Write "<script>alert('产品刪除成功!');window.location.href='cpgl_fl.asp?idyl=此处接收变量LB的值';</script>"
end if
%>
还有就是sql="select * from cp where elid="&id id的值在URL传递之后 提示数值类型错 本页可以


求问题的解法
第三次发问

论坛的斑竹怎么没一个有正解的


[ 本帖最后由 inking0801 于 2011-2-21 00:11 编辑 ]
3 回复
#2
xing5996662011-02-21 04:04
Response.Write "<script>alert('产品刪除成功!');window.location.href='cpgl_fl.asp?idyl=request.Form("LB")';</script>"

Response.Write "<script>alert('产品刪除成功!');window.location.href='cpgl_fl.asp?idyl=“&LB&”';</script>"


[ 本帖最后由 xing599666 于 2011-2-21 04:07 编辑 ]
#3
netmember2011-02-21 04:19
inking0801楼主怎么不回应xing599666对你问题的帮助。
#4
hams2011-02-21 08:03
可能这就是没有人愿意帮助的原因吧

另:
Response.Write "<script>alert('产品刪除成功!');window.location.href='cpgl_fl.asp?idyl=“&LB&”';</script>"

注意“&LB&”,应为"&LB&"

不过我估计LB变量名是楼主写错了
自己的基本东西都错了,别人再怎么帮也是白忙,这估计是另一个没人帮的原因。
1