【发布时间】:2009-12-02 19:16:13
【问题描述】:
我正在运行 ASP .NET AJAX Toolkit 3.5。
我已经设置了一个带有 collapsablePanelExtender 的面板,它在 Firefox 3.5 中有效,但在 IE7 中无效!在 IE7 中,所有“折叠”面板都不会缩小 - 激活按钮什么都不做。
我的代码:
<asp:ImageButton ID="btnA" runat="server" ImageUrl="~/Image/expand.gif" />
<asp:Panel ID="pnlA" runat="server" >
<!-- grid -->
<asp:GridView ID="gridA" runat="server"
AllowPaging="True" AllowSorting="True"
DataSourceID="sdsA" GridLines="Vertical">
</asp:GridView>
</asp:Panel>
<cc1:CollapsiblePanelExtender ID="cpeA" runat="server"
Enabled="True" TargetControlID="pnlA"
CollapsedSize="0" ExpandedSize="300" Collapsed="true" ScrollContents="true"
ExpandControlID="btnA" CollapseControlID="btnA"
ExpandDirection="Vertical" ExpandedImage="~/Image/collapse.gif"
CollapsedImage="~/Image/expand.gif"
ImageControlID="btnA" AutoExpand="false" SuppressPostBack="true">
</cc1:CollapsiblePanelExtender>
代码有问题吗?
我一直使用的 DOCTYPE 是:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
我也试过了:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" >
更新1:
看起来好像单击按钮导致面板“隐藏”了片刻,然后重新出现。
【问题讨论】:
标签: asp.net asp.net-ajax ajaxcontroltoolkit collapsiblepanelextender