延迟服务器端 [英] Delaying on server side
问题描述
我想实现相当于META REFRESH,但没有HTML
元刷新和没有JavaScript。换句话说,在服务器端我会等待几秒钟,然后重定向页面。有什么方法可以吗?
这个?
Agoston Bejo于2005年2月14日写了
microsoft.public.inetserver.asp.general:我想实现相当于META REFRESH,但没有
HTML元刷新和没有JavaScript。换句话说,在服务器端,我想等几秒钟,然后重定向页面。有没有办法做到这一点?
不,重定向始终是客户端。
甚至服务器端响应.redirect" /"
发送任何html后都无法发送,因为它只需将消息中的重定向标头设置为客户端。
-
Evertjan。
荷兰。
(用点替换所有十字架我的电子邮件地址)
Agoston Bejo写道:
我想达到相当于META REFRESH但没有
HTML元刷新和没有JavaScript。换句话说,在服务器端我想等几秒钟,然后重定向
页面。有没有办法做到这一点?
您可以使用server.transfer来完成无客户端重定向,但是
制作服务器等待没有导致100%的CPU使用率(绝对不是建议使用
)是不可能的。 Web服务器旨在满足请求,
不会坐在那里等待,拒绝等待的待处理请求..
Bob Barrows
-
Microsoft MVP - ASP / ASP.NET
请回复新闻组。我的From
标题中列出的电子邮件帐户是我的垃圾邮件陷阱,因此我不经常检查它。通过发布到新闻组,您将获得更快的回复。
" Agoston Bejo" <顾*** @ freemail.hu>在消息中写道
新闻:%2 *************** @ TK2MSFTNGP09.phx.gbl ...
:
:我想实现相当于META REFRESH但没有
HTML
:元刷新和没有JavaScript。换句话说,在服务器端我
将
:喜欢等待几秒钟,然后重定向页面。有什么办法吗?
:这个?
为什么?这两个选项有什么问题?
-
Roland Hall
/ *这些信息是希望分发的这将是有用的,但
没有任何保证;甚至没有适销性的暗示保证
或特定用途的适用性。 * /
Technet脚本中心 - http:// www .microsoft.com / technet / scriptcenter /
WSH 5.6文档 - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Hi,
I would like to achieve the equivalent of META REFRESH but without the HTML
meta refresh and without JavaScript. In other words, on server side I would
like to wait some seconds, then redirect the page. Is there any way to do
this?
Agoston Bejo wrote on 14 feb 2005 in
microsoft.public.inetserver.asp.general:I would like to achieve the equivalent of META REFRESH but without the
HTML meta refresh and without JavaScript. In other words, on server
side I would like to wait some seconds, then redirect the page. Is
there any way to do this?
No, redirecting is always clientside.
even serverside response.redirect "/"
Cannot be sent after any html is sent, as it
simply sets a redirect header in the message to the client.
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)
Agoston Bejo wrote:Hi,
I would like to achieve the equivalent of META REFRESH but without
the HTML meta refresh and without JavaScript. In other words, on
server side I would like to wait some seconds, then redirect the
page. Is there any way to do this?
You can use server.transfer to accomplish the client-less redirect, but
making the server wait without causing 100% CPU usage (definitely not
recommended) is not possible. Web servers are designed to serve requests,
not sit there waiting, refusing pending requests as it waits..
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don''t check it very often. You will get a
quicker response by posting to the newsgroup.
"Agoston Bejo" <gu***@freemail.hu> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
: Hi,
: I would like to achieve the equivalent of META REFRESH but without the
HTML
: meta refresh and without JavaScript. In other words, on server side I
would
: like to wait some seconds, then redirect the page. Is there any way to do
: this?
Why? What is wrong with those two options?
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
这篇关于延迟服务器端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!