<%@ page Language = "c#" autoeventwireup = "true" codefile = "showdialog_dialog.aspx.cs" enternits = "wshelpdoc_dialog_dialog"%>
次のようにコードコードをコピーします。
<
<html xmlns = "http://www.w3.org/1999/xhtml">
<head runat = "server">
<title> showmodaldialogポップダイアログボックス(sub -window)</title>
<スクリプト言語= "javascript" type = "text/javascript">
関数loadl()
{{
document.getElementById( "Context")。
}
関数restu_value()
{{
window.returnvalue = "complete";
window.close();
falseを返します。
}
</script>
</head>
<bodyのみ= "loadl()" >>
<fund 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>