如何触发的UpdatePanel从一个GridView TemplateColumn中点击?UpdatePanel、GridView、TemplateColumn

由网友(我可以拉你的裤拉链么)分享简介:我有以下的情况下,我的所有控件的更新面板的页面上。I have the following case, all my controls on an update panel on the page.其中的控件之一是GridView控件,这个GridView控件包含在标题模板字段一个复选框(作检查全部)。将AutoP...

我有以下的情况下,我的所有控件的更新面板的页面上。

I have the following case, all my controls on an update panel on the page.

其中的控件之一是GridView控件,这个GridView控件包含在标题模板字段一个复选框(作检查全部)。将AutoPostBack是真实的,但结账时没有改变的是改变,更新面板有一个触发异步回发的GridView控件。

One of these controls is a GridView, this GridView contains a CheckBox on the header template field (to make a check all). The autopostback is true but when the check changed no thing is changed, the update panel has a trigger asynchronous post back for the GridView.

推荐答案

你必须定义,像这样的ASyncPostBackTrigger:

You'll have to define an ASyncPostBackTrigger like so:

<asp:UpdatePanel>
 <Triggers>
         <asp:AsyncPostBackTrigger ControlID="yourCheckBox" />
  </Triggers>
<ContentTemplate>
...GridView etc
</ContentTemplate>
</asp:UpdatePanel>
阅读全文

相关推荐

最新文章