Click here to Skip to main content
15,885,868 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have code as below.
I want to stop automatic collaps control.
XML
<div id="DivWall">
        <asp:Timer ID="Timer2" runat="server" Interval="1000" OnTick="Timer1_Tick">
        </asp:Timer>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
            </Triggers>
            <ContentTemplate>
                <asp:DataList ID="DataList1" runat="server">
                    <ItemTemplate>
                        <asp:Button ID="btnComment" runat="server" Text="Comment" />
                        <asp:DataList ID="DataList2" runat="server">
                            <ItemTemplate>
                                <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                    <asp:Panel runat="server" id="PanelComment">
                                        <asp:TextBox ID="txtCommentBox" runat="server">
                                        </asp:TextBox>
                                        <asp:Button ID="btnCommentSubmit" runat="server" Text="Comment" OnClick="btnCommentSubmit_Click" />
                                    </asp:Panel>
                                </asp:UpdatePanel>
                            </ItemTemplate>
                        </asp:DataList>
                        <asp:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server" TargetControlID="PanelComment"
                            CollapseControlID="btnComment" ExpandControlID="btnComment" Collapsed="true">
                        </asp:CollapsiblePanelExtender>
                    </ItemTemplate>
                </asp:DataList>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>



On Tick event DataList1 is Binding.
Problem: PanelComment is autometic collaps.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900