Wednesday, March 2, 2011

How to Automatically Refresh SharePoint WEB Parts.

(How to asynchronously update SharePoint web parts )

Option 1


In SharePoint 2010 there is a option called Enable Asynchronous Load in the AJAX Option section. thus we can set a Automatic Refreshing Interval as a refresh time.

Option 2

But this option is not available for all web parts. thus i did a little trick.

  • First I created a blank ASPX File. 


  • Then put the what ever web part that you need to show. this can be a custom SharePoint list also.


<script type="text/javascript">
function timedRefresh(timeoutPeriod) {
// -->

  • then put above JavaScript to refresh the page.

  • Finally but a page viewer web part to your page and browse and give the page created earlier. now you have automatically refreshing section. 

No comments: