Avatar of kishan66
kishan66
Flag 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
Microsoft SharePointASP.NET

Avatar of undefined
Last Comment
Rainer Jeschor

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Rainer Jeschor

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23