Hi Guys,
if you are facing a challenge while closing a model dialog in provider hosted app from code behind then pls . use below script it will help you to achieve your requirements
Close The Modal Dialog Of A Provider-Hosted App from code Behind
1. If you want to refresh your parent window after closing your dialog then use below script
HttpContext.Current.Response.Write("<script language='JavaScript'>window.parent.postMessage('CloseCustomActionDialogRefresh', '*');</script>");
2. if you don't want to refresh your parent page after closing your dialog then use below script
HttpContext.Current.Response.Write("<script language='JavaScript'>window.parent.postMessage('CloseCustomActionDialogNoRefresh', '*');</script>");
I hope this will help you a lot...
Happy coding.... :)
Regards!!
Pankaj Srivastava
by Pankaj Srivastava via Everyone's Blog Posts - SharePoint Community
No comments:
Post a Comment