Kettyjin1983 发表于 2008-6-16 13:55

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

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>"

gupiao175 发表于 2008-6-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%>试试看行不,注意标点符号!

Kettyjin1983 发表于 2008-6-16 14:12

不行,改成<%autoid%>提示语句为结束

Kettyjin1983 发表于 2008-6-16 14:15

不行,改成<% =autoid %>提示未结束的字符串常量

Kettyjin1983 发表于 2008-6-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>"

hmhz 发表于 2008-6-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=[color=red]"&[/color]autoid[color=red]&"[/color]'</script>"

jxyga111 发表于 2008-6-17 11:14

""啊

Kettyjin1983 发表于 2008-6-17 15:53

已经解决了.非常感谢各位.

页: [1]

编程论坛