【发布时间】:2014-03-02 22:01:29
【问题描述】:
在我的gridItemTemplate 中,我有更新面板和复选框,
<ItemTemplate>
<asp:UpdatePanel runat="server" ID="upChkOption">
<ContentTemplate>
<asp:CheckBox runat="server" ID="chkOption" AutoPostBack="true"
OnCheckedChanged="chkOption_CheckChanged">
</ContentTemplate>
</asp:UpdatePanel>
</ItemTemplate>
第一次运行没有错误,但是在postback之后,我得到了这个错误
Cannot unregister UpdatePanel with ID 'upChkOption' since it was not registered with
the ScriptManager. This might occur if the UpdatePanel was removed from the control
tree and later added again, which is not supported. Parameter name: updatePanel
我该如何解决?
【问题讨论】:
标签: c# asp.net checkbox updatepanel postback