检查经典ASP中的条件 [英] checking condition in classic ASP
本文介绍了检查经典ASP中的条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是asp新手我有一个名为'labour.asp'的页面有两个按钮'submit'和'cancel'。
我的问题是在提交页面值之前先检查一下i的值如果i的值大于5,则提交页面'labour.asp'并转到下一页'check.asp'例如。
i = 1
如果我> 5然后
提交'labour.asp'页面的值并转到下一页'check.asp'
其他
退出
解决方案
试试这个让我知道。
<%
Dim i
i = 6
如果 i = 6 那么
回复.Redirect( check.asp)
其他
退出;
结束 如果
%> ; 跨度>
i m new in asp i have a page named 'labour.asp' having two button 'submit' and 'cancel'.
my question is that before submitting the value of page it first check the value of i if value of i greater than 5 then submit the page 'labour.asp' and go to the next page 'check.asp' for example.
i=1
if i>5 then
submit the value of 'labour.asp' page and go to the next page 'check.asp'
else
exit
解决方案
Try this and let me know.
<% Dim i i= 6 If i= 6 Then Response.Redirect("check.asp") Else Exit; End If %>
这篇关于检查经典ASP中的条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文