关于页面重定向 [英] About the Page Redirect

查看:105
本文介绍了关于页面重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我必须执行另一个服务器上没有重定向的页面,
我已经尝试过Server.Execute("http://in.jagran.yahoo.com>")

但是它不起作用,请给我建议....

解决方案

saurabhmaghar写道:

我尝试了Server.Execute("http:\\ yahoo.com")



那不是正确的网址!

试试:

Server.Execute("http://www.google.com")


Server.Execute用于在同一应用程序空间(同一文件夹或其子文件夹之一)中包含ASP页面.您无法执行外部页面.

代替此操作,您可以使用iframe 显示外部网站页面的内容.


使用Server.Transfer("http://www.google.com")

Hi all,
I have to execute a page which is on another server without redirect,
I have tried Server.Execute("http://in.jagran.yahoo.com>")

but it is not working plz give suggestion if any....

解决方案

saurabhmaghar wrote:

I have tried Server.Execute("http:\\yahoo.com")



Thats not the correct URL!

Try:

Server.Execute("http://www.google.com")


Server.Execute is used to include ASP page within the same application space (the same folder or one of its subfolder). You can''t execute an external page.

Instead of this you can use iframe to show the content of the external website page.


Use Server.Transfer ("http://www.google.com")


这篇关于关于页面重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆