日期:2014-05-17  浏览次数:20975 次

这句话有错吗?
<%if   session( "Power ")=0   then   response.write   "普通 "
      elseif   session( "Power ")=1   then   response.write   "代理商 "
              end   if  
end   if%>

请大家帮我看下,我实在看不出哪有错.

------解决方案--------------------
<%if session( "Power ")=0 then response.write "普通 "
elseif session( "Power ")=1 then response.write "代理商 "
end if%>
------解决方案--------------------
嗯。楼主结贴吧。分都给LS。
------解决方案--------------------

<%
if session( "Power ")=0 then
response.write "普通 "
elseif session( "Power ")=1 then
response.write "代理商 "
end If
%>
------解决方案--------------------
还有一种:
<%
if session( "Power ")=0 then response.write "普通 "
if session( "Power ")=1 then response.write "代理商 "
%>
^_____________^
还有一种:
<%
select case session( "Power ")
case 0
response.write "普通 "
case 1
response.write "代理商 "
end select
%>

------解决方案--------------------
<%if session( "Power ")=0 then
response.write "普通 "
elseif session( "Power ")=1 then
response.write "代理商 "
end if%>
不要写在一行上.

------解决方案--------------------
<%if session( "Power ")=0 then
response.write "普通 "
else
response.write "代理商 "
end if%>

------解决方案--------------------
如写成if session( "Power ")=0 then response.write "代理商 ",if就认为不用end if

如写成if session( "Power ")=0 then
response.write "代理商 "

if就认为缺少end if

语法不同