ASP.NET UpdatePanel回发

I created a marker interface:

public interface ISupportAJAXPostsBacks{}

I added it to my Page..

public partial class MyWebForm : PageBase, ISupportAJAXPostsBacks

I have this check in my PageBase class...

if(this is ISupportAJAXPostsBacks)
{
   ... do some stuff ...
}

If I step through via the debugger, "this is ISupportAJAXPostsBacks" evaluates to true for the initial page load, but evaluates to false when an UpdatePanel posts back on that same page. (scratches head)

What is happening under the covers to cause this and what can I do about it?

查看全部
weixin_33698823
weixin_33698823
2009/10/29 16:00
  • c#
  • updatepanel
  • asp.net
  • ajax
  • 点赞
  • 收藏
  • 回答
    私信

2个回复