如何触发的UpdatePanel从一个GridView TemplateColumn中点击? [英] How to trigger UpdatePanel from a GridView TemplateColumn click?
本文介绍了如何触发的UpdatePanel从一个GridView TemplateColumn中点击?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有以下的情况下,我的所有控件的更新面板的页面上。
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>
这篇关于如何触发的UpdatePanel从一个GridView TemplateColumn中点击?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文