< %@ Page language = "c#" autoeventwireup = "true" codefile = "showdialog_dialog.aspx.cs" inherits = "wshelpdoc_dialog_dialog" %>
Copy code code as follows:
<! Doctype HTML PUBLIC "-// W3C // DTD XHTML 1.0 Transitional // EN" http://www.w3.org/xhtml1/dtddml1-transitationAl.dtd ">
<html xmlns = "http://www.w3.org/1999/xhtml">
<head runat = "server">
<Title> ShowmodalDialog Popping Dialog box (sub -window) </Title>
<script language = "javascript" type = "text/javascript">
Function loadl ()
{{
document.GetelementByid ("context"). Value = window.dialogarguments;
}
function restu_value ()
{{
Window.returnValue = "complete";
window.close ();
Return false;
}
</script>
</head>
<body only = "loadl ()">>
<found id = "form1" runat = "server">
<div>
<asp: Button ID = "Button1" Runat = "Server" onClientClick = "Javascript: Return Retu_value ()"
Text = "Close" /> < /div>
<div>
<A ID = "Biaoqian" onClight = "Retu_value ()"> Close </a>
</div>
<div>
<asp: textbox id = "context" runat = "server"> </asp: textbox>
</div>
</form>
</body>
</html>