ASP判断当前页面上是否有参数ID传递过来asp

/ / 2019-06-24   阅读:2494
遇到了一个这样的ASP问题: 在当前页面上判断,是否有参数ID传递过来? 如果没有,显示“没有参数传递过来”。 如果有传递,但值为空,显示“存在参数,但参数为空” <% if (request("id"))=false then ...
遇到了一个这样的ASP问题:
在当前页面上判断,是否有参数ID传递过来?
如果没有,显示“没有参数传递过来”。
如果有传递,但值为空,显示“存在参数,但参数为空”

<%
if (request("id"))=false then
    response.write("不存在参数ID")
else
    response.write "有参数ID,"
    if request("id")="" or isnull(request("id")) then
        response.write "但参数为空"
    else
        response.write "参数是:"&request("id")
    end if
end if
%>

我要评论

昵称:
验证码:

最新评论

共0条 共0页 10条/页 首页 上一页 下一页 尾页
意见反馈