首页 >> 读书频道 >> 电脑 >> 用HTML META标签和ASP来作定时迟时信息
 
· 在你的ASP中使用类(c
· 动态产生变量
· 一个把数字转英文的实用程
· 生成一个不重复的随即数字
· 如何使ASP程序暂停指定
· 一个不太让人讨厌的自动弹
· 将ASP生成的内容写入响
· ASP中巧用Respon
· 页面之间传递元素的办法
· 用vbscript判断e
· 用err.raise自定
· 聊天室关键技术[用户断线
 
· 素质教育在美国
· 全唐诗卷四十六
· 韩剧《布拉格恋人》剧情介
· 夜航船[作者:明·张岱]
· 局外人[作者:韩·可爱淘
· 现场流行病学
· 源氏物语[日本:紫式部]
· 红楼梦:120回全本[清
· 武林寓言故事
· 2006高考录取规则
· 首批中国世界名牌产品和2
· 济南美食大全
 
· (出租)中动商场部分及写
· (出租)中动动漫基地&#
· 喜剧学院
· 《善德女王》剧情介绍
· 魔女18号 剧情
· 丑女无敌剧情介绍
· 魔女幼熙剧情介绍
· 龙游天下剧情介绍
· 震撼世界的七日剧情介绍
· 静静的白桦林剧情介绍
· 心情日记—老公今天我想对
· 旗舰剧情介绍
欢迎来到月影社区!如果您觉得这里不错,请推荐给您的朋友们。月影社区:http://wf66.com/

用HTML META标签和ASP来作定时迟时信息


查看有无更新版本

关键字:ASP 2006-8-28

 

Using ASP and HTML Meta TAGS To Make A Dynamic Delay Message
This is a little trick to display a timed message to the user after doing some sort of task. By mixing
some creative ASP with a simple HTML META Refresh you can display a message to a user for a specified
period of time and then redirect them back to wherever you want.
META tags with an HTTP-EQUIV attribute are equivalent to HTTP headers. Usually, they control the action of
browsers, and may be used to refine the information provided by the actual headers.
Here is how it works.
After completing some sort of ASP code. ( Possibly a database update ).
You can redirect the user like so to the delay page.
First, turn on buffering because you'll probably need it depending on where in your page you redirect.
Put this at the top of your page before the <HTML> Tag.
<% Response.Buffer = True %>
Then when you are ready to send the user to the delay page do something like this.
<% MYMESSAGE = Server.URLEncode("Adding New Product....Please Wait") %>
<% Response.Redirect ("delay.asp?DELAY_TIME=3&DELAY_MESSAGE=" & MYMESSAGE & "&REDIRECT_URL=default.asp") %>
As you see can see there are 3 variables we send to the delay page.
DELAY_TIME
REDIRECT_URL
DELAY_MESSAGE
Then the delay.asp page would consist of the following code.
<%@ LANGUAGE="VBSCRIPT" %>
<%
DELAY_TIME = Request("DELAY_TIME")
REDIRECT_URL = Request("REDIRECT_URL")
DELAY_MESSAGE = Request("DELAY_MESSAGE")
%>
<html>
<head>
<meta http-equiv="Refresh" content="<% =DELAY_TIME %>; URL=<% =REDIRECT_URL %>">
<title>Delay</title>
</head>
<body color="#FFFFFF">
<font face="Arial"><p align = "center"><strong><% =DELAY_MESSAGE %></strong></p></font>
</body>
</html>

用HTML META标签和ASP来作定时迟时信息

[ 1 ]
用HTML META标签和ASP来作定时迟时信息 num

打印本页 关闭

关于我们版权声明本站导航友情连结作品演示 TOP↑