UpdatePanel not behaving as expected

D

DeekoVB5

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>
 
B

bruce barker

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

-- bruce (sqlwork.com)
 
D

DeekoVB5

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top