I use update panels all the time when i wanna to update specific part of my page but recently i face performance problems ( i mean it 's slow in rendering the intended control and sometimes it doesn't work and need multiple click to work !!
so my question is :
How we can increase the rendering performance?
I have used the radio button , dropdownlist and Image button inside Update Panel.
Locally it is working fine while hosting on server it cause the problem.
Best Regards,
life is name of learning!
Mark as an answer if it helps
When you trigger an UpdatePanel on a page the entire page is processed, then only the HTML for the UpdatePanel is refreshed.
The problem you have is "the entire page is processed". (http://encosia.com/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous ). So if you
have these other, for example, datagrids, then will be refreshed (they will call the database and process their data) even though their HTML display will not be updated.
The reason ASP.NET does this is because the data from the other elements on the page may affect what you're displaying in the UpdatePanel you ARE trying to refresh.
The only way around this is to NOT use the UpdatePanel in this situation and to use something likeASP.NET AJAX Page Methods
Rameezwaheed
Contributor
3730 Points
1595 Posts
Update Panel > slow in rendering the intended control and sometimes it doesn't work and need mult...
Dec 05, 2012 09:04 AM|LINK
Hi all,
I use update panels all the time when i wanna to update specific part of my page but recently i face performance problems ( i mean it 's slow in rendering the intended control and sometimes it doesn't work and need multiple click to work !!
so my question is :
How we can increase the rendering performance?
I have used the radio button , dropdownlist and Image button inside Update Panel.
Locally it is working fine while hosting on server it cause the problem.
Best Regards,
Mark as an answer if it helps
chetan.sarod...
All-Star
66619 Points
11270 Posts
Re: Update Panel > slow in rendering the intended control and sometimes it doesn't work and need ...
Dec 06, 2012 02:21 AM|LINK
When you trigger an UpdatePanel on a page the entire page is processed, then only the HTML for the UpdatePanel is refreshed.
The problem you have is "the entire page is processed". (http://encosia.com/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous ). So if you have these other, for example, datagrids, then will be refreshed (they will call the database and process their data) even though their HTML display will not be updated.
The reason ASP.NET does this is because the data from the other elements on the page may affect what you're displaying in the UpdatePanel you ARE trying to refresh.
The only way around this is to NOT use the UpdatePanel in this situation and to use something likeASP.NET AJAX Page Methods
for optimize the performance of ASP.NET AJAX; you can read the following article: ASP.NET AJAX Performance Improvement http://lancezhang.wordpress.com/2008/11/15/aspnet-ajax-performance/
http://blogs.msdn.com/b/webtopics/archive/2009/06/18/fix-updatepanel-async-postbacks-slow-in-internet-explorer.aspx
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
CruzerB
Contributor
5399 Points
1098 Posts
Re: Update Panel > slow in rendering the intended control and sometimes it doesn't work and need ...
Dec 06, 2012 03:08 AM|LINK
Hi,
http://encosia.com/why-aspnet-ajax-updatepanels-are-dangerous/
Maybe this article can help you.
My Technical Blog
Rameezwaheed
Contributor
3730 Points
1595 Posts
Re: Update Panel > slow in rendering the intended control and sometimes it doesn't work and need ...
Dec 06, 2012 05:07 AM|LINK
Thanks for detailed reply,
I have the below aspx
<asp:UpdatePanel ID="upd1" runat="server"> <ContentTemplate> <div class="box"> <div class="inner"> TReport <span> <asp:RadioButton ID="checkOne" runat="server" GroupName="rdb" OnCheckedChanged="checkOne_CheckedChanged" AutoPostBack="True" /> </span> </div> </div> <div class="box"> <div class="inner"> TReport <span> <asp:RadioButton ID="checkTwo" runat="server" GroupName="rdb" OnCheckedChanged="checkTwo_CheckedChanged" AutoPostBack="True" /> </span> </div> </div> <div style="text-align: right"> <br /> <asp:ImageButton ID="btnNext" runat="server" ImageUrl="~/img/Next.png" ValidationGroup="a" OnClick="btnNext_Click" /> </div> </ContentTemplate> <Triggers> <asp:PostBackTrigger ControlID="checkTwo" /> <asp:PostBackTrigger ControlID="checkOne" /> <asp:PostBackTrigger ControlID="btnNext" /> <asp:PostBackTrigger ControlID="ddlSubject" /> </Triggers> </asp:UpdatePanel>But on each selection Page is postback .
Please suggest some time controls are working and some time not.
Mark as an answer if it helps
Rameezwaheed
Contributor
3730 Points
1595 Posts
Re: Update Panel > slow in rendering the intended control and sometimes it doesn't work and need ...
Dec 06, 2012 08:26 AM|LINK
HIi,
very much slow async postbacks via an UpdatePanel, When I say "very slow", I mean in the neighborhood of 30 seconds!.
Is there any cause of this issue?
very much annoyed behavor of Update Panel.
Regards,
Mark as an answer if it helps