Link to home
Start Free TrialLog in
Avatar of kishan66
kishan66Flag for United States of America

asked on

Webpart refresh in Sharepoint 2010, C#

Hi,

i have multiple Webparts on a aspx page. (lets name 1 & 2 webparts) ... Each webpart is a Usercontrol.

On webpart 1 , i have a edit button ...which opens a form on click.
Also, i have a Ribbon on the form (with Save, Cancel...)
On click of the save the form is closed.. and a message is thrown back to the aspx page if 'Success' or 'Failure'

Now, Is there any way i can refresh Webpart 2 , When that 'save' button on the Form Ribbon is clicked.
(may be some javascript...)

...................................................................
sample code on the form page(which is opened on click of Edit button from Webpart 1)

if (e.CommandArgument.ToString() == Convert.ToString(EDC.Applications.Common.RibbonActions.SaveClicked))
{
this.Page.Response.Clear();
            this.Page.Response.Write(String.Format("<script type=\"text/javascript\">window.frameElement.commonModalDialogClose('{0}', '');</script>", succ));
            this.Page.Response.End();
..
}

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Rainer Jeschor
Rainer Jeschor
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial