asp中Response.End()用法

时间:2021-01-02 23:54:16
【文件属性】:
文件名称:asp中Response.End()用法
文件大小:52KB
文件格式:PDF
更新时间:2021-01-02 23:54:16
AS asp esp ASP开发中可能有时候会用大段的if… else 的判断,不过如果是动态Response.write的内容,你想更方便阅读代码,可以用Response.End()来终端ASP的执行,也就类似于Break的用法,举个例子: 代码如下: if (userid=””)or(password=””) then Response.Write(“[removed]alert(‘UserName or Password is Empty!’);location.href=’../default.asp’;[removed]”) Response.End() ‘这里进

网友评论