ASP.NET的UpdatePanel:有条件的UpdateMode故障 [英] ASP.NET updatepanel : updatemode conditional malfunction

查看:61
本文介绍了ASP.NET的UpdatePanel:有条件的UpdateMode故障的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的问题:

在一个页面上,我在有条件的UpdateMode 2的UpdatePanel,与childrenastrigger设置为true(默认值)。

On a page, i've 2 updatepanels in conditional updatemode, with childrenastrigger set to true (default value).

这是第一或者第二UpdatePanel内一个IPostBackEventHandler控件的点击导致2的UpdatePanel刷新。

A click on a IPostBackEventHandler control inside either the first or second updatepanel causes the 2 updatepanels to refresh.

这是不是预期的行为。任何想法?

This is not the expected behavior. Any Idea?

推荐答案

感谢回答,

由于经常,它最终是一个参数问题:

As often, it finally was a parameter problem:

一个队名工人忘了设定的<一个href=\"http://msdn.microsoft.com/en-us/library/system.web.ui.updateprogress.associatedupdatepanelid.aspx\"相对=nofollow>一个其他的UpdatePanel的AssociatedUpdatePanelID 财产。
因此,似乎这样的UpdatePanel令人耳目一新了。

A team worker had forgot to set the AssociatedUpdatePanelID property of an other updatepanel. So it seems like this updatepanel was refreshing too.

此外,我忘了,在asyncpostback,页面中的所有控件都重新创建(即使是一个UpdatePanel内),但不渲染。

Moreover, i forgot that on a asyncpostback, all the controls in the page were recreated (even those inside an updatepanel), but not rendered.

在调试的时候它可以是令人不安的...

It can be disturbing when debugging...

这篇关于ASP.NET的UpdatePanel:有条件的UpdateMode故障的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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