0
MS AJAX의 아코디언 컨트롤을 사용하고 있습니다. 정상적으로 작동하지만 UpdatePanel과 함께 작동하지는 않습니다. 내 레이아웃은 다음과 같습니다.Accordion에서 UpdatePanel이 새로 고침되지 않습니다.
<div id="accordion">
<div><a href="#">Header1</a></div>
<div class="acc_content">
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" >
<ContentTemplate>
<asp:button id="btnToggle" runat="server" text="toggle"/>
//my repeater contents go here. The buttons within the repeater cause a postback, but changes cannot be seen unless the page is manually refreshed (since the updatepanel doesn't refresh)
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnToggle" EventName="click" />
<asp:AsyncPostBackTrigger ControlID="btnAdd" EventName="click" /> //this button is outside the updatepanel
</ContentTemplate>
</Triggers>
</asp:UpdatePanel>
</div>
<div><a href="#">Header 2 </a></div>
<div class="acc_content">
Content of the second pane
</div>
</div>
버튼을 클릭 할 때 포스트 백이 발생하지만, 업데이트 패널은 결코 새로 고침 또는 업데이트되지 않습니다. 각 포스트 백 이벤트에 대한 코드 숨김에 UpdatePanel1.Update()
을 추가하려고했지만 행운은 없습니다. 왜 이런 일이 일어나고 있는지에 대한 아이디어가 있습니까?
감사합니다.