<%@ Page Language="C#" AutoEventWireup="true" CodeFile="showdialog_dialog.aspx.cs" Inherits="WSHelpDoc_showdialog_dialog" %> Copy the code The code is as follows: showModalDialog pop-up dialog box (subform) <br> function loadl()<br> {<br> document.getElementById("context").value = window.dialogArguments;<br> }<br> function retu_value()<br> {<br> window.returnValue = " Completed";<br> window.close(); <br> return false; )"><br> <form id="form1" runat="server"><br> <div><br> <asp:Button ID="Button1" runat="server" OnClientClick=" javascript:return retu_value()"<BR> Text="Close" /></div><br> ;Close</a><br> <br> </div><br> </form><br></body><br></html><br><br><br> </div>