试试这样行不行,如果行,把你的程序里的response.end去掉(其他按你的源代码)试试
if rs.eof and rs.bof then
Response.Write("没有相关内容")
else
sql2="select * from gztb where JaAdmin='"&session("JaAdmin")&"' and UserID="&id
set rs2=server.createobject("adodb.recordset")
rs2.open sql2,conn1,1,1
session("shenc")=rs2("shenc")
session("JaAdmin1")=rs2("JaAdmin")
session("UserID")=rs2("UserID")
<% if session("shenc")=1 and session("JaAdmin")=session("JaAdmin1") and session("id")=session("UserID") then %>
<%=rs("gcadd")%>
<%else%>
<% Response.Write "装饰公司高级会员投标审查后才可以看" %>
<%end if%>
<%end if%>
if rs.eof and rs.bof then
Response.Write("没有相关内容")
else
sql2="select * from gztb where JaAdmin='"&session("JaAdmin")&"' and UserID="&id
set rs2=server.createobject("adodb.recordset")
rs2.open sql2,conn1,1,1
session("shenc")=rs2("shenc")
session("JaAdmin1")=rs2("JaAdmin")
session("UserID")=rs2("UserID")
<% if session("shenc")=1 and session("JaAdmin")=session("JaAdmin1") and session("id")=session("UserID") then %>
<%=rs("gcadd")%>
<%else%>
<% Response.Write "装饰公司高级会员投标审查后才可以看" %>
<%end if%>
<%end if%>