js调用asp文件,并返回调用asp传递过来的参数变量
manager.html中<script>$('<scriptlanguage="JavaScript"src="admin_profile.asp?username='...
manager.html中
<script>$('<script language="JavaScript" src="admin_profile.asp?username='+fUserID+'"><\/script>');</script>
<script>var cLastName=adid?adid:fUserID;</script>
admin_profile.asp中
<!--#include file="../inc/config_front.asp"-->
<%
set rs=conn.execute("select cLastName from "&db_tmemnew&" where cUname='ytmsc'")
if not rs.eof then
Response.docment.Write("var adid;")
Response.Write("adid="&rs(0)&";")
else
Response.Write("var adid = "&rs(0)&";")
end if
%>
运行时,提示rs(0)的值未定义 展开
<script>$('<script language="JavaScript" src="admin_profile.asp?username='+fUserID+'"><\/script>');</script>
<script>var cLastName=adid?adid:fUserID;</script>
admin_profile.asp中
<!--#include file="../inc/config_front.asp"-->
<%
set rs=conn.execute("select cLastName from "&db_tmemnew&" where cUname='ytmsc'")
if not rs.eof then
Response.docment.Write("var adid;")
Response.Write("adid="&rs(0)&";")
else
Response.Write("var adid = "&rs(0)&";")
end if
%>
运行时,提示rs(0)的值未定义 展开
1个回答
2008-04-10
展开全部
manager.html中
<script>document.write('<script language="JavaScript" src="admin_profile.asp?username='+fUserID+'"><\/script>');</script>
<script>var cLastName=adid?adid:fUserID;</script>
admin_profile.asp中
<!--#include file="../inc/config_front.asp"-->
<%
set rs=conn.execute("select cLastName from "&db_tmemnew&" where cUname='ytmsc'")
if not rs.eof then
Response.Write("var adid="&rs(0)&";")
else
Response.Write("var adid = 0;")
end if
%>
运行时,提示rs(0)的值未定义
<script>document.write('<script language="JavaScript" src="admin_profile.asp?username='+fUserID+'"><\/script>');</script>
<script>var cLastName=adid?adid:fUserID;</script>
admin_profile.asp中
<!--#include file="../inc/config_front.asp"-->
<%
set rs=conn.execute("select cLastName from "&db_tmemnew&" where cUname='ytmsc'")
if not rs.eof then
Response.Write("var adid="&rs(0)&";")
else
Response.Write("var adid = 0;")
end if
%>
运行时,提示rs(0)的值未定义
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询