文章详情页
ASP 信息提示函数并作返回或者转向
有时候我们在写asp的时候需要给用户一些反馈信息,这个自定义的返回信息函数,很方便大家使用
"************************ "子程序名:信息提示窗口 "功能:信息提示,并作返回或者转向 "参数: "str 提示字符串 "stype 处理类型:Back 返回 GoUrl 转向 Close 关闭 "url 转向方向 "************************ Sub MsgBox(str,stype,url) response.write "<script language=javascript>" response.write "alert(""&str&"");" select case stype case "Back" response.write "history.go(-1);" case "GoUrl" response.write "window.location=""&url&""" case "Close" response.write "window.close()" end select response.write "</script>" End Sub
具体的使用方法就不说了,很简单
标签:
ASP
相关文章:
1. 完美的ASP分页脚本代码2. Spring-基于Spring使用自定义注解及Aspect实现数据库切换操作3. 使用EF Code First搭建简易ASP.NET MVC网站并允许数据库迁移4. ASP.NET MVC使用jQuery的Load方法加载静态页面及注意事项5. ASP.NET MVC实现横向展示购物车6. ASP中if语句、select 、while循环的使用方法7. 使用本机IIS Express开发Asp.Net Core应用图文教程8. asp使用Weekday函数计算项目的结束时间9. asp createTextFile生成文本文件支持utf810. ASP 连接Access数据库的登陆系统
排行榜