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

javascript引用asp变量失败,不知道原因

Kettyjin1983 发布于 2008-06-16 13:55, 908 次点击
autoid = session("autoid")
response.Write "<script lanuage='javascript'>alert('There is the same S/N exist.Please check S/N again.');location='http://hzmot/quick/Equipment/Leased/dealmodify.asp?autoid='+autoid+''</script>"
7 回复
#2
gupiao1752008-06-16 14:04
。。。
response.Write "<script lanuage='javascript'>alert('There is the same S/N exist.Please check S/N again.');location='http://hzmot/quick/Equipment/Leased/dealmodify.asp?autoid='+autoid+''</script>"
你把‘+autoid+'改成<%=autoid%>试试看行不,注意标点符号!
#3
Kettyjin19832008-06-16 14:12
不行,改成<%autoid%>提示语句为结束
#4
Kettyjin19832008-06-16 14:15
不行,改成<% =autoid %>提示未结束的字符串常量
#5
Kettyjin19832008-06-16 14:54
未结束的字符串常量
response.Write "<script lanuage='javascript'>alert('There is the same S/N exist.Please check S/N again.');location='http://hzmot/quick/Equipment/Leased/dealmodify.asp?autoid=<%=autoid%>'</script>"
#6
hmhz2008-06-16 15:33
response.Write "<script lanuage='javascript'>alert('There is the same S/N exist.Please check S/N again.');location='http://hzmot/quick/Equipment/Leased/dealmodify.asp?autoid="&autoid&"'</script>"
#7
jxyga1112008-06-17 11:14
""啊
#8
Kettyjin19832008-06-17 15:53
已经解决了.非常感谢各位.
1