Home > DeveloperSection > Forums > Ajax UpdatePanel not firing?
Ankita Pandey
Ankita Pandey

Total Post:183

Points:1285
Posted on    August-21-2014 1:03 AM

 ASP.Net ASP.Net 
Ratings:


 1 Reply(s)
 775  View(s)
Rate this:

I am not understanding why this doesn't fire. It will not even call the event. Any thoughts? Really what I want to do, is prevent a full post-back. The page is large and each time it does a post back it jumps to the top.

<asp:UpdatePanel runat="server" id="UpdatePanel" updatemode="Conditional">

    <ContentTemplate>

    <p>

        <asp:Label runat="server" ID="lblSnippet" AssociatedControlID="cmbSnippet">

            From snippet:

        </asp:Label>

        <asp:DropDownList runat="server" ID="cmbSnippet" CssClass="dropdown" AutoPostBack="true">

            <asp:ListItem>

                None

            </asp:ListItem>

            <asp:ListItem>

                Read Part

            </asp:ListItem>

            <asp:ListItem>

                Read Feed

            </asp:ListItem>

        </asp:DropDownList>

    </p>

    <!--Code-->

    <p>   

        <asp:Label runat="server" ID="lblCode" AssociatedControlID="txtCode">

            From code:

        </asp:Label>

        <asp:TextBox runat="server" ID="txtCode" TextMode="MultiLine" CssClass="editor" MaxLength="100" Height="200" Wrap="false" />

    </p> 

    </ContentTemplate>

    <Triggers>

         <asp:Asyncpostbacktrigger controlid="cmbSnippet" eventname="SelectedIndexChanged" />

    </Triggers>

</asp:UpdatePanel>



Sumit Kesarwani

Total Post:378

Points:2694
Posted on    August-21-2014 1:05 AM

Hi Ankita, 

<asp:DropDownList runat="server" ID="cmbSnippet" CssClass="dropdown" AutoPostBack="true" OnSelectedIndexChanged="cmbSnippet_SelectedIndexChanged">


Don't want to miss updates? Please click the below button!

Follow MindStick