当控件进入内部时.. [英] When the control will come inside block..

查看:51
本文介绍了当控件进入内部时..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经编写了以下代码来重定向..我只是有点困惑,当控制将移动到内部,如果阻止并将执行重定向..

I have written following code to redirect ..I just a bit confused that when control will move inside if block and will perform redirection..

if (Page.IsCallback)
{
  Response.Redirect("/include/information/error_404.aspx");
}

推荐答案

请参阅这两个链接,您将清楚这里的代码会发生什么。



回发和回调之间的区别 [ ^ ]



Page.IsCallback Property [msdn] [ ^ ]



问候..:)
Refer these two links and you will be clear what happens here with your code.

Difference between a Postback and a Callback[^]

Page.IsCallback Property [msdn][^]

Regards..:)


这篇关于当控件进入内部时..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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