Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

UpdatePanel not behaving as expected

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DeekoVB5@gmail.com - 18 Feb 2008 17:47 GMT
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 - 18 Feb 2008 18:07 GMT
you have a ScriptManagerProxy, but did you define a ScriptManger on the
page (or master)?

-- bruce (sqlwork.com)

> 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
[quoted text clipped - 34 lines]
>  </ContentTemplate>
> </asp:UpdatePanel>
DeekoVB5@gmail.com - 18 Feb 2008 20:32 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.