Search code examples
visual-studio-2010sharepoint-2010web-parts

Refresh a list webpart to reflect the item added in sharepoint 2010 developed using visual studio 2010


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?


Solution

  • Here is link which meets your needs,

    I think it'll be helpfull to you.

    http://www.dotnetcurry.com/ShowArticle.aspx?ID=678

    Thnks and regards.

    It's another link which exactly meets your need,

    http://blogs.msdn.com/b/pranab/archive/2008/07/02/step-by-step-creating-connected-sharepoint-web-parts-using-iwebpartfield-interface-and-using-editor-part-and-user-controls.aspx