SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a visual webpart that list the students. Also have a webpart to add/edit student. after deploying the application, I created new webpart page and added CreateStudent webpart in a zone and ListStudent webpart in another zone. When i add a student I need to find that student details in the grid of ListStudent webpart. I think i need to connect the two webparts making CreateStudent webpart as provider webpart and ListStudent webpart as consumer webpart. But my doubt is, I dont need to pass any particular value to the ListStudent webpart. I have a funstion call in ListStudent webpart Page_Load which set the datasource of the gridview and binding it. How can this be done?

share|improve this question
up vote 0 down vote accepted

As per my understanding to the question here is my analysis.

CreateStudent - will add the student details to a list ListStudent - a grid showing the student details (all student details) from the list

When you add a student info through a web part (CreateStudent) and all the student records are shown in the ListStudent grid then there is no need for connecting the web parts.

Connecting web parts are only helpful when you pass any information from one web part to another and based on the sender info a different functionality will be executed in receiver end.

I prefer once you add the student information in Create Student web part just do a refresh of the page and it will load the ListStudent web part from the updated list source.

Hope this might help you!

share|improve this answer
your understanding of my query is perfect. but i want to know how to refresh ListStudent webpart from CreateStudent? I dont want to reload the entire page with postback – Suja Shyam Sep 6 '12 at 9:18

Your Answer


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.