A网页用asp传递url参数后,B网页获取但是显示不了数据是怎么回事?
A网页传递的参数为:<ahref="dw_gl.asp?dwID=<%=Rs("dwID")%>"target=mainFrame>管理账号</a>B网页获取:<%dim...
A网页传递的参数为:<a href="dw_gl.asp?dwID=<%=Rs("dwID") %>" target=mainFrame>管理账号</a>
B网页获取:
<%
dim id
id = request.querystring("dwID")
set rs = Server.CreateObject("adodb.RecordSet")
Sql = "Select * From dw_user where dwID='"&id&"'"
rs.Open Sql,conn,2,3
if not rs.Eof And not rs.Bof Then
%>
<% = Rs("dwmc") %>
<% End If %>
提示 rs.Open Sql,conn,2,3有错误 展开
B网页获取:
<%
dim id
id = request.querystring("dwID")
set rs = Server.CreateObject("adodb.RecordSet")
Sql = "Select * From dw_user where dwID='"&id&"'"
rs.Open Sql,conn,2,3
if not rs.Eof And not rs.Bof Then
%>
<% = Rs("dwmc") %>
<% End If %>
提示 rs.Open Sql,conn,2,3有错误 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询