<% @ Page Language = "C #" AutoEventWireup = "True" CodeFile = "showDialog_Dialog.aspx.cs" Hérites = "WSHELPDOC_DIALOG_DIALOG"%>
Copier le code du code comme suit:
<!
<html xmlns = "http://www.w3.org/1999/xhtml">
<head runat = "server">
<Title> ShowModaldialog Popping Dialog (Sub -Window) </Title>
<script lingots = "javascript" type = "text / javascript">
Function Loadl ()
{{
document.getElementById ("Context").
}
fonction restu_value ()
{{
Window.returnvalue = "complet";
window.close ();
Retourne false;
}
</cript>
</ head>
<corps uniquement = "loadl ()" >>
<idoux 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>
</docy>
</html>