asp怎么实现非注册用户显示100条信息

来源:百度知道 编辑:UC知道 时间:2024/05/21 21:57:02
<% if session("geid")="" then
response.Write(left(rs("content"),100)&"..."&"")
else
response.Write(rs("content"))
end if
%>
现在的问题是,怎么加上下面的超级链接,当没登陆时显示100个字,然后输出
<strong>如需浏览全文请</strong> <a href="reg1.asp"><font color="#FF0000">注册</font></a>或<a href="index.asp"><font color="#FF0000">登陆</font></a>

<% if session("geid")="" then
response.Write(left(rs("content"),100)&"..."&"")
response.write("<br>")
response.write("<strong>如需浏览全文请</strong> <a href=""reg1.asp""><font color=""#FF0000"">注册</font></a>或<a href=""index.asp""><font color=""#FF0000"">登陆</font></a>")
else
response.Write(rs("content"))
end if
%>


<strong>如需浏览全文请</strong> <a href="reg1.asp"><font color="#FF0000">注册</font></a>或<a href="index.asp"><font color="#FF0000">登陆</font></a>
写到response.write 下 ,不过要注意一点,上边所有的双引号都要改成单引号
例如:response.write "<strong>如需浏览全文请</strong> <a href='reg1.asp'><font color='