1
鑑於一個Ajax控制工具包手風琴在手風琴報頭中的控制:防止從觸發手風琴滾上/下行爲
<ajaxToolkit:Accordion runat="server"
SelectedIndex="0"
HeaderCssClass="accordionHeader"
HeaderSelectedCssClass="accordionHeaderSelected"
ContentCssClass="accordionContent"
AutoSize="None"
FadeTransitions="true"
TransitionDuration="250"
FramesPerSecond="40"
RequireOpenedPane="false"
SuppressHeaderPostbacks="true">
與在HeaderTemplate中一個ConfirmButtonExtender成對的按鈕:
<HeaderTemplate>
<asp:Button
ID="PushPlanButton"
Text="Push"
runat="server"
OnClick="PushPlanButtonPressed" />
<ajaxToolkit:ConfirmButtonExtender
ID="ConfirmButtonExtender1"
runat="server"
TargetControlID="PushPlanButton"
ConfirmText="Please confirm" />
</HeaderTemplate>
當點擊按鈕時,模態消息框出現,「請確認」,如預期的那樣。
當用戶解散它時,Accordion認爲它已被點擊並關閉活動面板,這是不期望的。
任何方法來抑制這種行爲?
您是先生,是天才。我還沒有嘗試過,但顯然已經進行了研究。我會盡快嘗試並回傳。非常感謝! – tomfanning 2012-03-25 13:42:44