<% @ Page Language = "C #" AutoEventWireup = "true" CodeFile = "showdialog_dialog.aspx.cs" Inherits = "WSHelpDoc_showdialog_dialog" %>
Copy codeThe Code is as follows:
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head runat = "server">
<Title> showModalDialog dialog box (subform) </title>
<Script language = "javascript" type = "text/javascript">
Function loadl ()
{
Document. getElementById ("context"). value = window. dialogArguments;
}
Function retu_value ()
{
Window. returnValue = "finished ";
Window. close ();
Return false;
}
</Script>
</Head>
<Body onload = "loadl ()">
<Form id = "form1" runat = "server">
<Div>
<Asp: Button ID = "Button1" runat = "server" OnClientClick = "javascript: return retu_value ()"
Text = "close"/> </div>
<Div>
<A id = "biaoqian" onclick = "retu_value ()"> disable </a>
</Div>
<Div>
<Asp: TextBox ID = "context" runat = "server"> </asp: TextBox>
</Div>
</Form>
</Body>
</Html>