4

In home page of my site i have some custom webparts. so home page is taking much time to load page,I want to load custom webparts asynchronously how can i do this. Does anyone have any idea.

1

You can find many articles on how to do this. On codeplex there is a solution that gives an example of how to load your webparts asynchonous. Also MSDN there is a nice article that explains how to create Asynchronous Web Parts.

But maybe you can first analyze your page and detect what webpart and why this webpart slowdown the page. One way to do this is using the Developer Dashboard and useSPMonitoredScope in your webpart to detect posible problems.

The Developer Dashboard is an instrumentation framework introduced in Microsoft SharePoint Foundation 2010. Similar in concept to ASP.NET page tracing, it provides diagnostic information that can help a developer or system administrator troubleshoot problems with page components that would otherwise be very difficult to isolate.

1
1

We have done this for so many of our custom web parts in our intranet. The steps we follow are given below:

  1. First we create custom web parts
  2. Then we added a web service
  3. The Web Method will return the html mark up of the user control
  4. Finally, we render the html mark up on the page using Ajax and JQuery.

Please read this article for more details, I have updated with code sample

3
  • Hi, please give me some more details on this. Jan 11 '14 at 14:10
  • Updated the post with a link to my blog Jan 15 '14 at 6:47
  • The link is dead. Jun 20 '19 at 7:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.