1<%...@ Control Language="C#" AutoEventWireup="true"
2 CodeFile="Delete.ascx.cs" Inherits="Basic_DeleteControl" %>
3<script language="javascript" type="text/jscript">...
4function CheckDelete()
5...{
6 if (window.confirm("정말로 삭제하시겠습니까?"))
7 ...{
8 return true; // 삭제 진행
9 }
10 else
11 ...{
12 return false; // 현재 진행 멈춤
13 }
14}
15script>
16<h3>글 삭제h3>
17<div>
18<asp:Label ID="lblNum" runat="server" ForeColor="Red">asp:Label>
19번 글을 삭제하시겠습니까?<br />
20암호: <asp:TextBox ID="txtPassword" runat="server"
21 TextMode="Password">asp:TextBox>
22<asp:Button ID="btnDelete" runat="server" Text="삭제"
23 OnClientClick="return CheckDelete();" OnClick="btnDelete_Click" /><br />
24
25<asp:Label ID="lblError" runat="server" ForeColor="Red">asp:Label>
26div>
27