Getting a webpart in AJAX request by webpart control id

Vinod Vutla asked on December 23, 2015 14:32

I had a template with RepeaterWithCustomQuery webpart instance with control id 'rwcqNextShows' which renders next 4 hour shows. I would like to change next four hours data by putting an AJAX call when document is getting redied. Now the Question is how can I get the webpart dynamically in AJAX request and the populating it with a new DataSet. If we found and we have assigned a new dataset to it, then will it get reflected in live-site because webaprt itself contains a transformation. Please advise.

Recent Answers

Bryan Soltis answered on December 23, 2015 16:43

Hi Vinod,

I'm not sure I fully understand what you are trying to achieve, however, if you want to work with AJAX calls and execute some code you may be able to find some inspiration from this blog post:

In the post, Rocky shows how to wrap the web part with a div and then call the doPostBack function. This may help do what you need.

  • Bryan
1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.