Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

What are best practices for doing a partial postback? Is it okay to use an AJAX Update Panel? I have a number of webparts on a page. I need to do a page refresh, so one webpart on the page gets refreshed. If possible, I would like to just postback the one webpart (partial page)and not the entire page. If using an AJAX Update Panel is not suggested, can I do it using JQUERY? If yes, I am wondering how I can do this?

Thanks for any tips given...

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

I don't have too many best practices about partial postbacks withing sharepoint. I would advise to go with JQuery: UpdatePanel won't work in sandboxed solutions

share|improve this answer
    
Do you happen to have an example or know of an online post that shows how to do this using jquery? –  obautista Jul 17 '11 at 19:01
    
Chris O'Brien wrote a series of blogposts on jquery and SharePoint 2010: sharepointnutsandbolts.com/2010/10/… –  Bas Lijten Jul 18 '11 at 7:13
    
IMO, it is perfectly OK to use an UpdatePanel if you aren't using sandboxed solutions. –  Kit Menke Jul 19 '11 at 13:54
add comment

A "partial postback" is usually an AJAX interaction; you're sending a small amount of data to the server and getting some data back without sending the whole page. It makes the UX more what people are getting used to on the "modern" Web. You can use jQuery's AJAX function to make this happen.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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