問題在我gridItemTemplate
,我有更新面板複選框,的UpdatePanel在Griview ItemTemplate中對回傳
<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
我該如何解決?
的http:// stackoverflow.com/questions/238915/what-causes-the-cannot-unregister-updatepanel-error –