Skip to content

Close or refresh parent window

Manu xaml

Asked Apr 17, 2009, 3:01 PM EDT1 answer
Share
LinkedInX
I am using WPF and C# and I wanted to know if there is a known method to close or better refresh a parent window after on_click (save) from the child window?

Thank You
Neo

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0

    In the codebehind use this code in onclick of button

    ClientScript.RegisterClientScriptBlock(this.GetType(), "ClosePopUp","window.close();window.opener.form1.submit();", true);

    Thanks,

    Jalajakshi

    0