Discussion in 'ASP .Net' started by Alhambra Eidos Kiquenet, Aug 28, 2008.

  1. Hi misters,

    Here we have two UpdatePanels defined with the second one including a
    declaration for an AsyncPostBackTrigger that wires up the click event of the
    button contained in the other UpdatePanel. When the user clicks the button,
    the second UpdatePanel will refresh its contents.

    In my page,when the user clicks the button, the updToolbar UpdatePanel
    refresh its contents too, but I want not refresh contents when the user
    clicks the button, only refresh updDynamicContent UpdatePanel, not updToolbar.

    Any suggestions about it ?? Thanks.

    <asp:UpdatePanel ID="updToolbar" runat="server" UpdateMode="Conditional">
    <asp:Button ID="btnRefresh" runat="server" Text="Refresh" />

    <asp:UpdatePanel ID="updDynamicContent" runat="server"
    <asp:GridView ID="gvListOfThings" runat="server"></asp:GridView>
    <asp:AsyncPostBackTrigger ControlID="btnRefresh"
    EventName="Click" />

    Alhambra Eidos Kiquenet, Aug 28, 2008
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.