< %@ page language = "c#"autoeventwireup = "true"codefile = "showdialog_dialog.aspx.cs"inherits = "wshelpdoc_dialog_dialog" %>
다음과 같이 코드 코드를 복사하십시오.
<!
<html xmlns = "http://www.w3.org/1999/xhtml">
<Head Runat = "Server">
<title> showmodaldialog popping 대화 상자 (sub -window) </title>
<script language = "javaScript"type = "text/javaScript">
함수 loadl ()
{{
getElementById ( "컨텍스트").
}
함수 restu_value ()
{{
window.returnValue = "완료";
Window.Close ();
거짓을 반환합니다.
}
</스크립트>
</head>
<body only = "loadl ()">>
<found id = "form1"runat = "Server">
<div>
<asp : button id = "button1"runat = "server"onclientClick = "javaScript : return retu_value ()"
텍스트 = "닫기" /> < /div>
<div>
<a id = "biaoqian"onclight = "retu_value ()"> 닫기 </a>
</div>
<div>
<asp : textbox id = "context"runat = "server"> </asp : textbox>
</div>
</form>
</body>
</html>