Click here to Skip to main content
15,903,388 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.
<div id="DivWall">
        <asp:Timer ID="Timer2" runat="server" Interval="1000" OnTick="Timer1_Tick">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
                <asp:DataList ID="DataList1" runat="server">
                        <asp:Button ID="btnComment" runat="server" Text="Comment" />
                        <asp:DataList ID="DataList2" runat="server">
                                <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                    <asp:Panel runat="server" id="PanelComment">
                                        <asp:TextBox ID="txtCommentBox" runat="server">
                                        <asp:Button ID="btnCommentSubmit" runat="server" Text="Comment" OnClick="btnCommentSubmit_Click" />
                        <asp:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server" TargetControlID="PanelComment"
                            CollapseControlID="btnComment" ExpandControlID="btnComment" Collapsed="true">

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

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