Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
When i am using two updatepanel on same page like this

Update Panel 1
C#
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:Timer runat="server" ID="UpdateTimer" Interval="3000"    OnTick="UpdateTimer_Tick" />
            <h2>
                <asp:Label runat="server" Font-Size="Small" Font-Names="verdana" ID="lblmsg" />
            </h2>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="UpdateTimer" EventName="Tick" />
        </Triggers>
    </asp:UpdatePanel>


Update Panel 2
C#
 <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
<asp:DropDownList ID="_ddlDist" ClientIDMode="Static" runat="server" Style="background-color: #DEDFDE;"
                        AutoPostBack="true" CssClass="ddl" OnSelectedIndexChanged="_ddlDist_SelectedIndexChanged" CausesValidation="True"
                        data-rel="chosen" required >
                    </asp:DropDownList>
 </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="_ddlDist" EventName="SelectedIndexChanged" />
        </Triggers>
    </asp:UpdatePanel>




if we can click on dropdown and wait than After 3 second it's automatically select cursor position item

Posted
Comments
KaushalJB 24-Jun-14 6:28am    
Use only one UpdatePanel

1 solution

Why do you need two update panel. Better use one update panel
 
Share this answer
 

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