超级简单ASP脚本问题

来源:百度知道 编辑:UC知道 时间:2024/06/03 13:26:39
<%
If Session("vipdate") <> "null" Then
Response.write "你的VIP还有<font color=#ff0000><% =session("vipdate")%></font>天到期。"
Else
End If
%>

却提示

Script error detected at line 131.
Source line: Response.write "你的VIP还有<% =session("vipdate")
Description: 语句未结束

到底是什么原因啊。。。

我的意思是想如果vipdate=null的话。。网页上就没下面的话了。
如果vipdate是数字的话就直接显示出来。。。
麻烦大家帮帮我啊!!!

应该是Response.write "你的VIP还有<font color=#ff0000>"&session("vipdate")&"</font>天到期。"

你原先的这句中出现了<%当然会出现问题

Response.write "你的VIP还有<font color=#ff0000>"&session("vipdate")&"</font>天到期。"