4
그래서이 체크 박스 목록이 있고 그 안에있는 요소에 대해 모두 선택 기능을 구현하고 싶습니다. UpdatePanel 안에 배치했는데 항목을 클릭 할 때마다 전체 페이지가 다시로드됩니다. 내가 false로 ChildrenAsTriggers를 설정해야하고이 방법이 난 단지 코드에서 업데이트,하지만 작동하지 않는 것하지만UpdatePanel 내부의 체크 박스 목록은 항목 체크시 전체 포스트 백을 트리거합니다.
<asp:UpdatePanel ID="CBLPanel" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">
<ContentTemplate>
<div class="LeftAligned">
<asp:Label ID="FilterLabel" runat="server" Text="Filter by:" />
<asp:DropDownList runat="server" ID="FilterDDL" AutoPostBack="true" OnSelectedIndexChanged="FilterDDL_SelectedIndexChanged" />
<asp:ImageButton ID="FB" runat="server" ImageUrl="~/images/filter.png" AlternateText="VALUE"
CssClass="filter_button" OnClick="FB_Click" />
<div onmouseout="javascript:bMouseOver=false;" onmouseover="javascript:bMouseOver=true;"
class="filter_div">
<asp:CheckBoxList AutoPostBack="true" ID="FilterCheckBoxList" ClientIDMode="Static"
runat="server" CssClass="filter_checklist collapsed" OnSelectedIndexChanged="FilterCheckBoxList_Selected">
</asp:CheckBoxList>
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
I : 이것은 내 코드입니다.
그게 전부입니다. 고맙습니다! –