We help IT Professionals succeed at work.

Webpart refresh in Sharepoint 2010, C#

kishan66
kishan66 asked
on
1,814 Views
Last Modified: 2012-06-18
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
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2013
Awarded 2012
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.