ASP 编程~~~~~~~~~小问题
来源:百度知道 编辑:UC知道 时间:2024/06/03 17:53:02
dim px
px=0
px=rs.RecordCount
<%if fbsb=1 then response.Write(sql("px"))else%><%=px+1%><%end if%>
为什么会出现
Microsoft VBScript 编译器错误 错误 '800a0400'
缺少语句
end if
救命
^
问题不用了 我该成
<%if fbsb=1 then%><%response.Write(sql("px"))%><%else%><%=px+1%><%end if%>
这样就行了
为什么 要 该成上面的就行啊
px=0
px=rs.RecordCount
<%if fbsb=1 then response.Write(sql("px"))else%><%=px+1%><%end if%>
为什么会出现
Microsoft VBScript 编译器错误 错误 '800a0400'
缺少语句
end if
救命
^
问题不用了 我该成
<%if fbsb=1 then%><%response.Write(sql("px"))%><%else%><%=px+1%><%end if%>
这样就行了
为什么 要 该成上面的就行啊
这是基本语句格式
if conditions then
sentence
else
sentence
end if
response.Write(sql("px"))else这样写必须在else前打个回车
dim px
px=0
px=rs.RecordCount
<%if fbsb=1 then response.Write(sql("px"))else%><%=px+1%><%end if%>
这里else前要换行或加上: