1 <%@ Page Language="C#" AutoEventWireup="true"
2 CodeFile="Login.aspx.cs" Inherits="User_Login" %>
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 ResetField()
12 {
13 var id = document.getElementById("txtUserID");
14 var pwd = document.getElementById("txtPassword");
15
16 id.value = "";
17 pwd.value = "";
18
19 return false;
20 }
21 script>
22 head>
23 <body>
24 <form id="form1" runat="server">
25 <div>
26 <table style="width: 400px" align="center">
27 <tr>
28 <td colspan="2" align="center">
29 회원 로그인td>
30 tr>
31 <tr>
32 <td align="right">
33 아이디:td>
34 <td>
35 <asp:TextBox ID="txtUserID" runat="server">asp:TextBox>
36 <asp:RequiredFieldValidator ID="valUserID" runat="server"
37 ControlToValidate="txtUserID"
38 Display="None" ErrorMessage="아이디를 입력하시오."
39 SetFocusOnError="True"
40 ValidationGroup="LoginForm">asp:RequiredFieldValidator>td>
41 tr>
42 <tr>
43 <td align="right">암호:td>
44 <td>
45 <asp:TextBox ID="txtPassword" runat="server"
46 TextMode="Password">asp:TextBox>
47 <asp:RequiredFieldValidator ID="valPassword" runat="server"
48 ControlToValidate="txtPassword"
49 Display="None" ErrorMessage="암호를 입력하시오."
50 SetFocusOnError="True" ValidationGroup="LoginForm" />td>
51 tr>
52 <tr>
53 <td colspan="2" align="center">
54 <asp:ImageButton ID="btnLogin" runat="server"
55 AlternateText="로그인" ValidationGroup="LoginForm"
56 OnClick="btnLogin_Click" />
57 <asp:ImageButton ID="btnCancel" runat="server"
58 AlternateText="취소" OnClientClick="return ResetField()" />td>
59 tr>
60 table>
61 div>
62 <asp:ValidationSummary ID="valSummary" runat="server" ShowMessageBox="True"
63 ShowSummary="False" ValidationGroup="LoginForm" />
64 form>
65 body>
66 html>
67