1 <%@ Page Language="C#" AutoEventWireup="true"
2 CodeFile="Delete.aspx.cs" Inherits="Basic_Delete" %>
3
4 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
7 <html xmlns="http://www.w3.org/1999/xhtml" >
8 <head runat="server">
9 <title>제목 없음</title>
10 <script language="Javascript" type="text/javascript">
11 function ConfirmDelete() {
12 if (window.confirm("정말로 삭제하시겠습니까?")) {
13 return true; // 삭제 진행
14 }
15 return false; // 진행 중지
16 }
17 </script>
18 </head>
19 <body>
20 <form id="form1" runat="server">
21 <div>
22 게시물 삭제<br /><br />
23 <asp:Label ID="lblNum" runat="server" Text=""></asp:Label>번
24 글을 삭제하시겠습니까?<br /><br />
25 암호:
26 <asp:TextBox ID="txtPassword" runat="server"
27 TextMode="Password"></asp:TextBox>
28 <asp:Button ID="btnDelete" runat="server" Text="삭제"
29 OnClientClick="return ConfirmDelete();"
30 OnClick="btnDelete_Click" />
31 <asp:Button ID="btnCancel" runat="server" Text="취소"
32 OnClick="btnCancel_Click" /><br />
33 <br />
34 <asp:Label ID="lblError" runat="server" Text=""></asp:Label>
35 </div>
36 </form>
37 </body>
38 </html>
39