0
我目前在我的代碼中有兩個ListView控件,一個將顯示一個產品,另一個顯示不同產品的價格變化。我的可摺疊面板放置在第二個ListView中。當第一個可摺疊面板在加載的網頁上單擊時,所有可摺疊面板都展開(關閉也可以)。進一步點擊任何其他可摺疊面板(除了第一面板),什麼都不會發生。 我曾嘗試將id分配給目標面板,並得到一條錯誤消息,說在運行時不能將id分配給控件。Ajax控件工具包CollapsiblePanel擴展頁面上的所有控件
這裏是第二列表視圖的一些示例代碼:
<LayoutTemplate>
<asp:Panel ID="pnlMoreProducts" runat="server" >
<asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
</asp:Panel>
<div id="productCollDiv" class="productCollPanel">
<asp:Label ID="lblCollPanel" CssClass="lblCollPanel" runat="server" ></asp:Label>
</div>
<ajaxToolkit:CollapsiblePanelExtender ID="cpeMoreProducts" AutoCollapse="false" runat="server" TargetControlID="pnlMoreProducts"
CollapsedSize="0" Collapsed="true" TextLabelID="lblCollPanel" CollapsedText="Show More Products" ExpandedText="Hide Products"
ExpandDirection="vertical" ExpandControlID="productCollDiv" CollapseControlID="productCollDiv" SuppressPostBack="true" />
</LayoutTemplate>
任何幫助,將不勝感激。 謝謝。
您的解決方案的工作,謝謝。 – Wr4i7h 2013-03-01 09:32:07