ASP编程变量赋值问题
<%dim id,address
id=request("id")
dim rs,sql
set rs=server.createobject("adodb.recordset")
sql="select * from zyzds where id='" & id &"'"
rs.open sql,conn,1,1
address=rs("file")
%>
<script language="vbscript">
Sub OpenFromServer()
Dim sPath
On Error Resume Next
sPath = <%=address%>
OA.OpenWebFile sPath
End Sub
</script>
<body onload="OpenFromServer()">
....
...
</body>
请大家帮忙看一下,这段代码有什么问题?赋值后为什么sPath的值是空的?
[ 本帖最后由 lxl741205 于 2011-3-6 21:02 编辑 ]