제목 : [2] 일정 입력 : ~/Schedule/ScheduleWrite.ascx
글번호:
|
|
245
|
작성자:
|
|
레드플러스
|
작성일:
|
|
2008/07/01 오후 3:05:00
|
조회수:
|
|
5000
|
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ScheduleWrite.ascx.cs"
Inherits="Schedule_ScheduleWriteControl" %>
<table border="1" style="width: 100%">
<tr>
<td colspan="2" style="text-align: center">
<h3>
스케줄 입력하기</h3>
</td>
</tr>
<tr>
<td style="width: 80px">
일시:
</td>
<td>
<asp:DropDownList ID="lstYear" runat="server">
</asp:DropDownList>
<asp:DropDownList ID="ddlMonth" runat="server">
</asp:DropDownList>
<asp:DropDownList ID="comDay" runat="server">
</asp:DropDownList>
<asp:DropDownList ID="ctlHour" runat="server">
</asp:DropDownList>
</td>
</tr>
<tr>
<td style="width: 80px">
제목:
</td>
<td>
<asp:TextBox ID="txtTitle" runat="server" Width="400px"></asp:TextBox>
</td>
</tr>
<tr>
<td style="width: 80px">
내용:
</td>
<td>
<asp:TextBox ID="txtContent" runat="server" Height="150px" TextMode="MultiLine" Width="400px"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan="2" style="text-align: center">
<asp:Button ID="btnWrite" runat="server" Text="입력" ValidationGroup="WriteForm" OnClick="btnWrite_Click" />
<asp:Button ID="btnList" runat="server" Text="리스트" OnClick="btnList_Click" />
</td>
</tr>
</table>
<div>
<asp:RequiredFieldValidator ID="valTitle" runat="server" ErrorMessage="제목을 입력하시오"
ControlToValidate="txtTitle" SetFocusOnError="true" Display="None" ValidationGroup="WriteForm"></asp:RequiredFieldValidator>
<br />
<asp:RequiredFieldValidator ID="valContent" runat="server" ErrorMessage="내용을 입력하시오."
ControlToValidate="txtContent" SetFocusOnError="true" Display="None" ValidationGroup="WriteForm"></asp:RequiredFieldValidator>
<br />
<asp:ValidationSummary ID="valSummary" runat="server" ShowMessageBox="true" ShowSummary="false"
ValidationGroup="WriteForm" />
</div>