的Response.Redirect [英] response.redirect
问题描述
我正在使用VB.NET 2003.
我可以使用此命令向用户发回一页:
Response.Redirect(请求.ServerVariables(HTTP_RE FERER)。
有没有一种简单的方法可以将他送回两页?
谢谢,
Dave
" Dave"< da *********** ******************@stic.net>在留言中写道
新闻:eR ************* *@TK2MSFTNGP14.phx.gbl ...我正在使用VB.NET 2003.
我可以使用此命令向用户发回一页:
Response.Redirect(Request.ServerVariables(" HTTP_RE FERER))。
有没有一种简单的方法可以将他送回两页?
使用javascript :
Response.Write"< script language = javascript> history.back(-2);< / script>
HTH
服务器没有T一无所知进一步回比你刚才
是从哪里来的。您需要客户端代码(在其他回复中提供)
因为只有浏览器知道自己的历史。
Dave <哒******** @ stic.net>在留言中写道
新闻:eR ************** @ TK2MSFTNGP14.phx.gbl ...我正在使用VB.NET 2003.
我可以使用以下命令向用户发回一页:
Response.Redirect(Request.ServerVariables(" HTTP_RE FERER")。
谢谢,
> blockquote>
是的,先生,我喜欢!
谢谢。
戴夫
" ; Dan"< daniel_c_hate_spam@NoSpam_myrealbox.com>写信息
news:ug ************* @ TK2MSFTNGP10.phx.gbl ...Dave< da ***************************** @ stic.net>在消息中写道<新闻:eR ************** @ TK2MSFTNGP14.phx.gbl ...我正在使用VB.NET 2003.
我可以使用以下命令向用户发回一页:
Response.Redirect(Request.ServerVariables(" HTTP_RE) FERER)。
有没有一种简单的方法可以将他送回两页?
使用javascript :
Response.Write"< script language = javascript> history.back(-2); < / script>"
HTH
I''m using VB.NET 2003.
I can send a user back one page with this command:
Response.Redirect(Request.ServerVariables("HTTP_RE FERER").
Is there a simple way to send him back two pages?
Thanks,
Dave解决方案"Dave" <da*****************************@stic.net> wrote in message
news:eR**************@TK2MSFTNGP14.phx.gbl...I''m using VB.NET 2003.
I can send a user back one page with this command:
Response.Redirect(Request.ServerVariables("HTTP_RE FERER").
Is there a simple way to send him back two pages?
Use javascript:
Response.Write "<script language=javascript> history.back(-2); </script>"
HTH
The server doesn''t know about anything further back than the page you just
came from. You need client-side code (as provided in the other reply)
because only the browser knows its own history.
"Dave" <da*****************************@stic.net> wrote in message
news:eR**************@TK2MSFTNGP14.phx.gbl...I''m using VB.NET 2003.
I can send a user back one page with this command:
Response.Redirect(Request.ServerVariables("HTTP_RE FERER").
Is there a simple way to send him back two pages?
Thanks,
Dave
Yes, sir, I like that!
Thanks.
Dave
"Dan" <daniel_c_hate_spam@NoSpam_myrealbox.com> wrote in message
news:ug*************@TK2MSFTNGP10.phx.gbl..."Dave" <da*****************************@stic.net> wrote in message
news:eR**************@TK2MSFTNGP14.phx.gbl...I''m using VB.NET 2003.
I can send a user back one page with this command:
Response.Redirect(Request.ServerVariables("HTTP_RE FERER").
Is there a simple way to send him back two pages?
Use javascript:
Response.Write "<script language=javascript> history.back(-2); </script>"
HTH
这篇关于的Response.Redirect的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!