Close Modal Dialog in SharePoint 2010

by josh 16. December 2010 04:03

this came in handy for closing custom item edit forms from codebehind:

 

  //Close modal dialog
Response.Write("<script type='text/javascript'>window.frameElement.commitPopup();</script>");
Response.Flush();
Response.End();

used at the end of button submit handler.

blog comments powered by Disqus