troubleshooting Question

Webpart refresh in Sharepoint 2010, C#

Avatar of kishan66
kishan66Flag for United States of America asked on
ASP.NETMicrosoft SharePoint
1 Comment1 Solution1818 ViewsLast Modified:
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
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros