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函数返回值、asp自定义函数返回值、asp 函数 多个返回值、asp 转向、asp.net 转向,以便于您获取更多的相关知识。

时间: 2024-09-08 14:49:00

ASP 信息提示函数并作返回或者转向的相关文章

ASP 信息提示函数并作返回或者转向_应用技巧

有时候我们在写asp的时候需要给用户一些反馈信息,这个自定义的返回信息函数,很方便大家使用 '************************ '子程序名:信息提示窗口 '功能:信息提示,并作返回或者转向 '参数: 'str 提示字符串 'stype 处理类型:Back 返回 GoUrl 转向 Close 关闭 'url 转向方向 '************************ Sub MsgBox(str,stype,url) response.write "<script lang

asp byref 让函数同时返回多值几种做法

          我们就以asp教程来举例说明关于,如何在用户自定义函数调用时反回多的值,先来看一组代码          <%           call getmynumber(aa,bb,cc)           response.write aa & " " & bb & "<br />" & cc           function getmynumber(byref aa,byref bb,byr

asp.net-网页提交信息提示 Helvetica

问题描述 网页提交信息提示 Helvetica 导致数据只处理了一半.... 完全不知道错误在哪 解决方案 http://blog.csdn.net/wugouzi/article/details/12621507

项目中常用封装方法(信息提示、权限验证、数据连接验证)

1.常用信息提示方法类 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Data; using System.Web.SessionState; namespace ECS.Utility { public class JScript { protected static HttpResponse Respons

ASP VBScript 分页函数

vbscript|分页|函数 作用: 为了通用性考虑, 本函数主要功能为分页导航, 定义数据库连接和调用数据在调用页操作. 1.1 函数 fPageCount 内容1.2 包含文件 abbr.asp, 非必须2.1 使用函数例12.2 使用函数例22.3 使用函数例3 注: 例中的脚本为跳转框必须 效果: -------------------------------------------------------------首页 上十 上一 1 2 3 4 5 6 7 8 9 10  下一 下

ASP常用的函数

函数 ASP常用的函数,希望能用的着. <% dim db db="dbms.mdb" '****************************************************************** '执行sql语句,不返回值,sql语句最好是如下: 'update 表名 set 字段名=value,字段名=value where 字段名=value 'delete from 表名 where 字段名=value 'insert into 表名 (字段名,

php函数的返回值

返回值 用户空间函数利用return关键字向它的调用空间回传信息, 这一点和C语言的语法相同. 例如: function sample_long() { return 42; } $bar = sample_long(); 当sample_long()被调用时, 返回42并设置到$bar变量中. 在C语言中的等价代码如下: int sample_long(void) { return 42; } void main(void) { int bar = sample_long(); } 当然, 在

javascript-JS老是提示函数未定义

问题描述 JS老是提示函数未定义 我的代码是这样的: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> xxx function process(){ onHello=document.createTextNode("xxxxxxxxxxxxxxxxxx

django-html中如何如调用js函数的返回结果

问题描述 html中如何如调用js函数的返回结果 我有一个js函数, function calculate() { return 10; } 在html中我想用django进行赋值,把calculate()计算的结果赋值给result {% with result=calculate() %} {{result}} 但这样写是错误的,哪位朋友能指导一下,十分感谢 解决方案 都已经说了,服务器端无法直接调用客户端的变量或者函数..客户端的信息必须提交后服务器端才能获取到,这个一定要搞清楚. 你可以