发布到另一台服务器并最终到那里? [英] Posting to another server and end up there?

查看:65
本文介绍了发布到另一台服务器并最终到那里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



您好


我在页面上有一个登录表单,应该将数据发布到非Windows $ / b $ b服务器并且在成功验证后,浏览器需要显示

secodn url。


我做了表格帖子,得到了成功的结果,但浏览器是

仍显示在同一个网址上。需要使用哪种方法,以便

浏览器显示目标网址。在这种情况下,它是我的代码中的sURL。 sHTML是

将表单发布到非
Windows服务器的成功结果。


例如,想象你想在你自己的

网站上放一个Hotmail登录表单,使用你的asp.net代码发布表单,浏览器最终在里面

Hotmail显示一个hotmail。 com url。


代码片段:


Response.ClearContent();

Response.ClearHeaders();

Response.ContentType =" text / html" ;;

Response.Write(sHtml);

Response.RedirectLocation = sURL;

Response.Flush();

Response.Close();

John Dalberg


Hello

I have a login form on a page that should post the data to a non Windows
server and upon successful authentication, the browser needs to show the
secodn url.

I did the form post, got the successful results back but the browser is
still showing at the same url. Which method needs to be used so that the
browser shows the target url. In this case it''s sURL in my code. sHTML is
the result from the successful result from posting the form to the non
Windows server.

As an example, imagine you want to put a Hotmail login form in your own
site, post the form using your asp.net code and the browser ends up inside
Hotmail showing a hotmail.com url.

Code Snippet:

Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "text/html";
Response.Write(sHtml);
Response.RedirectLocation = sURL;
Response.Flush();
Response.Close();
John Dalberg

推荐答案

替换;


Response.RedirectLocation = sURL;


随着


Response.Redirect sURL


-


问候


史蒂文烧伤

Ur IT Mate Group
www.it-mate.co.uk


保持免费!

" John Dalberg" <乔***** @ hotmail.com>在留言中写道

新闻:1n ***************************** @ 40tude.net ...
Replace;

Response.RedirectLocation = sURL;

With

Response.Redirect sURL

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"John Dalberg" <jo*****@hotmail.com> wrote in message
news:1n*****************************@40tude.net...

您好

我在页面上有一个登录表单,应该将数据发布到非Windows服务器,并且在成功验证后,浏览器需要显示
secodn url。

我做了表格帖子,得到了成功的结果,但浏览器仍然显示在同一个网址上。需要使用哪种方法,以便
浏览器显示目标网址。在这种情况下,它是我的代码中的sURL。 sHTML是将表单发布到非Windows服务器的成功结果的结果。

例如,假设您想要将Hotmail登录表单放在自己的Windows服务器中
网站,使用你的asp.net代码发布表单,浏览器最终内部显示一个hotmail.com网址的Hotmail。

代码片段:

Response.ClearContent();
Response.ClearHeaders();
Response.ContentType =" text / html" ;;
Response.Write(sHtml);
响应。 RedirectLocation = sURL;
Response.Flush();
Response.Close();

John Dalberg

Hello

I have a login form on a page that should post the data to a non Windows
server and upon successful authentication, the browser needs to show the
secodn url.

I did the form post, got the successful results back but the browser is
still showing at the same url. Which method needs to be used so that the
browser shows the target url. In this case it''s sURL in my code. sHTML is
the result from the successful result from posting the form to the non
Windows server.

As an example, imagine you want to put a Hotmail login form in your own
site, post the form using your asp.net code and the browser ends up inside
Hotmail showing a hotmail.com url.

Code Snippet:

Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "text/html";
Response.Write(sHtml);
Response.RedirectLocation = sURL;
Response.Flush();
Response.Close();
John Dalberg



2004年9月21日星期二18:59:11 +0100,Steven Burn写道:
On Tue, 21 Sep 2004 18:59:11 +0100, Steven Burn wrote:
替换;

Response.RedirectLocation = sURL; <

Response.Redirect sURL
Replace;

Response.RedirectLocation = sURL;

With

Response.Redirect sURL




Response.Redirect只是告诉浏览器去那个网址和开始

新鲜。我将丢失我之前收到的所有帖子结果。


John



Response.Redirect is just telling the browser to go to that url and start
fresh. I will lose all my post results that I got earlier.

John


> Response.Redirect只是告诉浏览器去那个网址并开始

新鲜。


我知道....
> Response.Redirect is just telling the browser to go to that url and start
fresh.

I know....
我将失去我之前收到的所有帖子结果。


如果您在获取已发布的

信息的代码之后放置Response.Redirect,则不会....(我在第一次回复时搞砸了)我不知道

Response.RedirectLocation方法)


-


问候


Steven Burn

Ur IT Mate Group
www.it-mate.co.uk


保持免费!

" John Dalberg" <乔***** @ hotmail.com>在留言中写道

新闻:1p ****************************** @ 40tude.net .. 。在星期二,2004年9月21日18:59:11 +0100,Steven Burn写道:
I will lose all my post results that I got earlier.
Not if you place the Response.Redirect after the code that grabs the posted
info.... (I screwed up in my first reply as I wasn''t aware of the
Response.RedirectLocation method)

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"John Dalberg" <jo*****@hotmail.com> wrote in message
news:1p******************************@40tude.net.. . On Tue, 21 Sep 2004 18:59:11 +0100, Steven Burn wrote:
替换;

Response.RedirectLocation = sURL;



Response.Redirect sURL
Replace;

Response.RedirectLocation = sURL;

With

Response.Redirect sURL



Response.Redirect只是告诉浏览器去那个网址并开始新鲜。我将丢失我之前收到的所有帖子结果。

John



Response.Redirect is just telling the browser to go to that url and start
fresh. I will lose all my post results that I got earlier.

John



这篇关于发布到另一台服务器并最终到那里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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