我试图使用名为UserControl的CheckBoxControl作为CollapsiblePanelExtender的ExpandControlID/CollapseControlID属性的值。当我使用普通的CheckBox时,它工作得很好。
<uc:CheckBoxControl ID="ucHaftpflicht" runat="server" OnCheckedChanged="UpdateStatus" ControlLabel="Haftpflicht" />
<asp:Panel ID="HaftpflichtPanel" runat="server">
...
</asp:Panel>
<asp:CollapsiblePanelExtender ID="CollapsiblePanelExtender" runat="server" CollapseControlID="ucHaftpflicht.CheckBox" ExpandControlID="ucHaftpflicht.CheckBox" TargetControlID="HaftpflichtPanel" />当我运行该站点时,我的站点上的大多数ajax控件消失了,我在firefox脚本错误控制台中得到以下错误:
没有通过method.
发布于 2010-03-03 18:05:33
通过UserControl中的getter公开复选框,并在页面的代码后面将CollapsiblePanelExtender折叠/展开控件ID分配给ucHaftpflicht.MyCheckBox.ClientID。
https://stackoverflow.com/questions/2362551
复制相似问题