UpdatePanel not behaving as expected

Discussion in 'ASP .Net' started by DeekoVB5@gmail.com, Feb 18, 2008.

  1. Guest

    I can't get an UpdatePanel on my page to work. One control - an
    ImageButton in a GridView - works the first time you click on it, but
    then freezes all of the controls on the form. The paging controls of
    the GridView refresh the entire page, as if the UpdatePanel wasn't
    there. There is an outside control - a dropdownlist - which is set to
    trigger the updatepanel, and also refreshes the entire page. Below
    are some snippets from the code. Any ideas?


    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server" />
    ....
    <asp:DropDownList ID="ChildSites" runat="server" AutoPostBack="True"
    OnSelectedIndexChanged="ChildSites_SelectedIndexChanged"></
    asp:DropDownList>
    ....
    <asp:UpdatePanel ID="MainUpdatePanel" runat="server"
    updatemode="Conditional" childrenastriggers="true">
    <Triggers>
    <asp:AsyncPostBackTrigger ControlID="ChildSites" />
    </Triggers>
    <ContentTemplate>
    <div >
    <div> Total<img src="star_active.png" alt="Approved" />s: <asp:Label
    ID="TotalStarsLabel" runat="server" /></div>
    </div>
    <asp:GridView ID="AnnouncementsGrid" runat="server"
    enablepaging="true" PageSize="10"
    OnRowDataBound="AnnouncementsGrid_ItemDataBound">
    <Columns>
    <asp:TemplateField>
    <ItemTemplate>
    <asp:ImageButton ID="ApprovalStatusImage" runat="server"
    ImageUrl="star_inactive.png" OnClick="ApprovalStatus_Clicked" />
    </ItemTemplate>
    </asp:TemplateField>
    </Columns>
    </asp:GridView>
    </ContentTemplate>
    </asp:UpdatePanel>
     
    , Feb 18, 2008
    #1
    1. Advertising

  2. bruce barker Guest

    you have a ScriptManagerProxy, but did you define a ScriptManger on the
    page (or master)?

    -- bruce (sqlwork.com)

    wrote:
    > I can't get an UpdatePanel on my page to work. One control - an
    > ImageButton in a GridView - works the first time you click on it, but
    > then freezes all of the controls on the form. The paging controls of
    > the GridView refresh the entire page, as if the UpdatePanel wasn't
    > there. There is an outside control - a dropdownlist - which is set to
    > trigger the updatepanel, and also refreshes the entire page. Below
    > are some snippets from the code. Any ideas?
    >
    >
    > <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server" />
    > ...
    > <asp:DropDownList ID="ChildSites" runat="server" AutoPostBack="True"
    > OnSelectedIndexChanged="ChildSites_SelectedIndexChanged"></
    > asp:DropDownList>
    > ...
    > <asp:UpdatePanel ID="MainUpdatePanel" runat="server"
    > updatemode="Conditional" childrenastriggers="true">
    > <Triggers>
    > <asp:AsyncPostBackTrigger ControlID="ChildSites" />
    > </Triggers>
    > <ContentTemplate>
    > <div >
    > <div> Total<img src="star_active.png" alt="Approved" />s: <asp:Label
    > ID="TotalStarsLabel" runat="server" /></div>
    > </div>
    > <asp:GridView ID="AnnouncementsGrid" runat="server"
    > enablepaging="true" PageSize="10"
    > OnRowDataBound="AnnouncementsGrid_ItemDataBound">
    > <Columns>
    > <asp:TemplateField>
    > <ItemTemplate>
    > <asp:ImageButton ID="ApprovalStatusImage" runat="server"
    > ImageUrl="star_inactive.png" OnClick="ApprovalStatus_Clicked" />
    > </ItemTemplate>
    > </asp:TemplateField>
    > </Columns>
    > </asp:GridView>
    > </ContentTemplate>
    > </asp:UpdatePanel>
     
    bruce barker, Feb 18, 2008
    #2
    1. Advertising

  3. Guest

    Yes, the ScriptManager is defined on the Master page. I've tried
    leaving off the ScriptManagerProxy and just using the Master page's
    ScriptManager, same problem.
     
    , Feb 18, 2008
    #3
    1. Advertising

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.
Similar Threads
  1. Ken Kafieh
    Replies:
    7
    Views:
    2,533
    Roedy Green
    May 19, 2004
  2. William Krick
    Replies:
    4
    Views:
    78,029
    rt19983
    Dec 18, 2008
  3. Skip Montanaro

    sys._getframe() not behaving as expected

    Skip Montanaro, Dec 1, 2003, in forum: Python
    Replies:
    0
    Views:
    378
    Skip Montanaro
    Dec 1, 2003
  4. Replies:
    1
    Views:
    360
    David
    Apr 16, 2007
  5. Mayada
    Replies:
    0
    Views:
    2,920
    Mayada
    Mar 5, 2008
Loading...

Share This Page