Response.Redirect Odditiy [英] Response.Redirect Odditiy

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

问题描述

我有几页已经开始显示一个奇怪的问题。


当代码调用Response.Redirect(" file.aspx")时,没有任何反应。

页面变为白色,旧的URL和查询字符串显示在页面顶部

。重定向的页面没有出现。


有什么想法吗?

解决方案

什么,如果什么,都会上来吗?


-

HTH,


Kevin Spencer

Microsoft MVP

..Net开发人员

你所寻求的是你所得到的。


" Johnny Fugazzi" <再******************* @ ldmkusa.com>在留言中写道

新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...

我有几页已经开始显示一个奇怪的问题。

当代码调用Response.Redirect(" file.aspx")时,没有任何反应。
页面变为白色,旧的URL和查询字符串显示在页面的顶部
。重定向的页面没有出现。

任何想法?



这是一个例子.. <单击按钮,按钮Sub中的所有代码都被执行并且有效,

然后它会转到响应重定向,它将启动到下一个页面...


当它到达这一点时,它似乎就会退出。


页面完全变白,但是网址和查询字符串仍然存在。

在我的代码中似乎不是一个错误,并且似乎没有异常

抛出。


相同的代码在我的开发框中工作正常,但问题发生在我的

服务器上。也只是在最后一两天才开始发生。


只是为了踢,我创建了一个只有一个

Response.Redirect的页面。 )。同样的事情发生了。


我已经重新启动了IIS和服务器本身。

" Kevin Spencer" <柯*** @ DIESPAMMERSDIEtakempis.com>在留言中写道

新闻:%2 *************** @ TK2MSFTNGP10.phx.gbl ...

什么,如果什么,还会出现吗?

-
HTH,

Kevin Spencer
微软MVP
.Net开发人员
什么你寻求的是你得到的。

Johnny Fugazzi <再******************* @ ldmkusa.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...

我有几页已经开始显示一个奇怪的问题。

当代码调用Response.Redirect(" file.aspx")时,没有任何反应。
页面变为白色,旧的URL和查询字符串显示在页面的顶部
。重定向的页面没有出现。

任何想法?




是你添加第二个可选参数?把它设置为假。


-

HTH,


Kevin Spencer

微软MVP

..Net开发人员

你所寻求的是你得到的东西。


" Johnny Fugazzi" <再******************* @ ldmkusa.com>在消息中写道

news:ev ************** @ TK2MSFTNGP10.phx.gbl ...

这里是一个示例..

单击按钮,按钮Sub中的所有代码都会执行并且
有效,然后它会转到响应重定向,然后启动到
页面...

当它到达这一点时,它似乎就会退出。

页面完全变白,但网址和查询字符串仍然存在。
那里在我的代码中似乎不是一个错误,并且没有例外情况会被抛出。

相同的代码在我的开发框中工作正常,但问题出现在
只是为了踢,我创建了一个只有一个
Response.Redirect()的网页。同样的事情发生了。

我已经重新启动了IIS和服务器本身。

" Kevin Spencer" <柯*** @ DIESPAMMERSDIEtakempis.com>在消息中写道
新闻:%2 *************** @ TK2MSFTNGP10.phx.gbl ...

什么,如果有的话,来了起来了?

-
HTH,

凯文斯宾塞
微软MVP
.Net开发人员
你所寻求的是什么你得到了。

Johnny Fugazzi <再******************* @ ldmkusa.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...

我有几页已经开始显示一个奇怪的问题。

当代码调用Response.Redirect(" file.aspx")时,没有任何反应。
页面变白,旧的URL和查询字符串显示在页面顶部。重定向的页面没有来

任何想法?





I have a couple of pages that have started showing an odd problem.

When the code calls Response.Redirect("file.aspx"), nothing happens. The
page goes white, and the old URL and querystring are displayed at the top of
the page. The page that was redirected towards does not come up.

Any ideas?

解决方案

What, if anything, DOES come up?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Johnny Fugazzi" <re*******************@ldmkusa.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

I have a couple of pages that have started showing an odd problem.

When the code calls Response.Redirect("file.aspx"), nothing happens. The
page goes white, and the old URL and querystring are displayed at the top
of the page. The page that was redirected towards does not come up.

Any ideas?



Here''s an example..

Button is clicked, all of the code in the buttons Sub is executed and works,
and then it gets to a Response Redirect which would kick to the next page...

When it gets to this point it just seems to quit.

The page goes completely white, but the url and querystring remains. There
doesn''t appear to be an error in my code, and no exceptions appear to be
thrown.

The same code works fine on my development box, but the problem occurs on my
server. Also has only started happening in the last day or two.

Just for kicks, I made a page with abutton that only does a
Response.Redirect(). Same thing happened.

I have restarted IIS and the server itself.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...

What, if anything, DOES come up?

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"Johnny Fugazzi" <re*******************@ldmkusa.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

I have a couple of pages that have started showing an odd problem.

When the code calls Response.Redirect("file.aspx"), nothing happens. The
page goes white, and the old URL and querystring are displayed at the top
of the page. The page that was redirected towards does not come up.

Any ideas?




Are you adding the second optional parameter? Set it to false.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Johnny Fugazzi" <re*******************@ldmkusa.com> wrote in message
news:ev**************@TK2MSFTNGP10.phx.gbl...

Here''s an example..

Button is clicked, all of the code in the buttons Sub is executed and
works, and then it gets to a Response Redirect which would kick to the
next page...

When it gets to this point it just seems to quit.

The page goes completely white, but the url and querystring remains.
There doesn''t appear to be an error in my code, and no exceptions appear
to be thrown.

The same code works fine on my development box, but the problem occurs on
my server. Also has only started happening in the last day or two.

Just for kicks, I made a page with abutton that only does a
Response.Redirect(). Same thing happened.

I have restarted IIS and the server itself.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...

What, if anything, DOES come up?

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"Johnny Fugazzi" <re*******************@ldmkusa.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

I have a couple of pages that have started showing an odd problem.

When the code calls Response.Redirect("file.aspx"), nothing happens.
The page goes white, and the old URL and querystring are displayed at
the top of the page. The page that was redirected towards does not come
up.

Any ideas?





这篇关于Response.Redirect Odditiy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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