1. The content in page B is displayed in the pop-up window on page.
Reference JS scripts on page.
// Custom view function customView () {var options = {url:/_ layouts/15/Manage/FilterViewUser. aspx, title: Custom view, dialogReturnValueCallback: CopCloseCallback}; SP. UI. modalDialog. showModalDialog (options);} // callback function -- result is the value returned from page B. function CopCloseCallback (result, value) {if (result = SP. UI. dialogResult. OK) {// do something }}
B page to pass values and close the modeled form
Page.ClientScript.RegisterStartupScript(Page.ClientScript.GetType(), myscript, <script type='text/javascript'>window.frameElement.commitPopup('');</script>);
Window. frameElement. commitPopup ('') is the value written in the closed code brackets. The A page can be accepted in the result.
2. The DIV in page A is displayed.
Reference an Assembly <% @ Register Assembly = AjaxControlToolkit, Version = 3.0.30930.28736, Culture = neutral, PublicKeyToken = Your Namespace = AjaxControlToolkit TagPrefix = PC3 %> to reference the built-in model JS.
Define the DIV to be modeled