Sharepoint modeled form

Source: Internet
Author: User

 

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

        
 
 
  Reason for rejection:    
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.