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

ASP if end if 坐等求解
<%
if page<=0 then page=1 

if request.QueryString("page")="" then
page=1
end if
%>

if page<=0 then page=1 

用end if 结束就报错

if request.QueryString("page")="" then
page=1
end if
 则相反不用 end if 报错
这个end if 到底该怎么用

------解决方案--------------------
if a = 1 then b = 2

if a = 1 then
b = 2
end if
得简写

------解决方案--------------------
写在一行上,不用end if