I have a page that loads a gridview and noticed that the pageload is extremely slow, up to 1 minute. what is the best way to troubleshoot slow page performance? the stored procedure returns data very quickly but the page still loads slow from my machine.
I am thinking first to put a breakpoint in the pageload and step through to find out which part of the pageload code is making the page load so slow. any other good ideas? thanks
I think more information is needed to provide a solution such as how many records are loaded, etc. As a possible option, if there are no values to be posted back, you can disable view state on grid view.
And before that check if the grid binding is causing the issue by placing a response.write datetime before and after binding the grid. It might give other input as well.
Thanks,
Sundeep Podugu
My Blog --------------------------------------------------
If there is any mistake/suggestion in any of my conversation in this forum, please let me know.
MyronCope
Participant
1656 Points
1345 Posts
Improve page performance
Nov 12, 2012 10:07 PM|LINK
using asp.net/vb.net 2010
I have a page that loads a gridview and noticed that the pageload is extremely slow, up to 1 minute. what is the best way to troubleshoot slow page performance? the stored procedure returns data very quickly but the page still loads slow from my machine. I am thinking first to put a breakpoint in the pageload and step through to find out which part of the pageload code is making the page load so slow. any other good ideas? thanks
MC
sundeep_38
Contributor
3541 Points
604 Posts
Re: Improve page performance
Nov 12, 2012 10:27 PM|LINK
I think more information is needed to provide a solution such as how many records are loaded, etc. As a possible option, if there are no values to be posted back, you can disable view state on grid view.
And before that check if the grid binding is causing the issue by placing a response.write datetime before and after binding the grid. It might give other input as well.
Sundeep Podugu
My Blog
--------------------------------------------------
If there is any mistake/suggestion in any of my conversation in this forum, please let me know.
Dan Bracuk
Contributor
3970 Points
1096 Posts
Re: Improve page performance
Nov 12, 2012 10:47 PM|LINK
How much data is being returned?
If you view the html source code, how much whitespace do you see?
oned_gk
All-Star
35808 Points
7313 Posts
Re: Improve page performance
Nov 13, 2012 12:23 AM|LINK
1. Set allowpaging="true"
2. Use sqldatasource
3. If any calculation, logic use rowdatabound event
Suwandi - Non Graduate Programmer
ramiramilu
All-Star
97799 Points
14494 Posts
Re: Improve page performance
Nov 13, 2012 09:14 AM|LINK
use YSlow to get to know where exactly your page is going slow...
thanks.
JumpStart
Ruchira
All-Star
44216 Points
7184 Posts
MVP
Re: Improve page performance
Nov 13, 2012 11:58 AM|LINK
Hello,
Check the below link
http://developer.yahoo.com/performance/rules.html
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.