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

0x800A01F4解决方法

2012-07-15 
0x800A01F4代码是这样的:%@codepage65001 languageVBScript %% Option Explicit %!-- #include

0x800A01F4
代码是这样的:
<%@ codepage="65001" language="VBScript" %>
<% Option Explicit %>
<!-- #include file="ckeditor/ckeditor/ckeditor.asp" -->
<%
  if session("login")=1 then
  msg=session("username")&"欢迎你~"
  msg3="<a href=tccheck.asp>"&"退出登陆"
  end if
%>
</head>
<body>
<table width="100%" border="0" align="center">
  <tr>
  <td height="26" colspan="2"><table width="320" border="0" align="left">
  <tr>
  <td width="314">&nbsp;</td>
  </tr>
  </table> </td>
  <td width="362" height="26"><table width="375" border="0" align="right">
  <tr>
  <td width="222"><%=msg%></td>
  <td width="143"><%=msg3%></td>
  </tr>
   
  </table></td>
  </tr>
</table>



错误。。。说我msg没有定义。。。。高手帮帮忙。。。。。

[解决办法]

JScript code
if session("login")=1 ... end if//你的写法只有session("login")为1时,才有定义,不为1时,你都没有执行msg=...,此时msg和msg3还会有定义么??? 

热点排行