首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

看看这段错哪了或少了

2012-06-27 
看看这段哪里错了或少了%if session(yonhu) thenresponse.Write(table width100% border0

看看这段哪里错了或少了
<%
if session("yonhu")<>"" then
  response.Write("<table width='100%' border='0' cellspacing='0'><tr><td height='25'><div align='center'>欢迎"&session("yonghu")&"用户</div></td></table>")
else
%>

[解决办法]
dim a=session("yonghu")
response.Write("<table width='100%' border='0' cellspacing='0'><tr><td height='25'><div align='center'>欢迎"+a+"用户</div></td></table>")
采用这样的方式试试
[解决办法]
如果不是少了个end if检查一下编码。
[解决办法]
dim a=session("yonghu")不能这样写,你可以
dim a
a=session("yonghu")
response.Write "<table width='100%' border='0' cellspacing='0'><tr><td height='25'><div align='center'>欢迎" & a & "用户</div></td></table>"

热点排行