<%@ Page language="c#" Codebehind="Write.aspx.cs" AutoEventWireup="false" Inherits="SampleCS.Upload.Write" validateRequest="false" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>Write</title>
<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="../Global.css" type="text/css" rel="stylesheet">
</HEAD>
<body leftMargin="0" topMargin="0" MS_POSITIONING="FlowLayout">
<form id="Write" method="post" encType="multipart/form-data" runat="server">
<h3>자료실 게시판</h3>
<FONT face="굴림">
<P><FONT style="FONT-SIZE: 9pt; COLOR: #ff0000">글 쓰기 - 다음 필드들을 채워주세요. </FONT>
<HR width="100%" SIZE="1">
<table id="Table1" style="BORDER-COLLAPSE: collapse" borderColor="black" cellSpacing="0"
rules="none" width="600" align="center" bgColor="white">
<TBODY>
<tr>
<td align="center" width="100" bgColor="#efefef">
<P align="right">*이 름
</P>
</td>
<td width="500"><asp:textbox id="txtName" runat="server" Width="150px" MaxLength="10" BorderStyle="Solid" BorderWidth="1px"></asp:textbox><FONT face="굴림">
<asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" Display="None" ControlToValidate="txtName"
ErrorMessage="* 이름을 작성해 주세요."></asp:requiredfieldvalidator></FONT></td>
</tr>
<tr>
<td align="center" bgColor="#efefef">
<P align="right">E-mail
</P>
</td>
<td><asp:textbox id="txtEmail" runat="server" Width="200px" MaxLength="80" BorderStyle="Solid" BorderWidth="1px"></asp:textbox><FONT style="FONT-SIZE: 9pt" color="#aaaaaa"><I>(Optional)</I></FONT>
<asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server" Display="None" ControlToValidate="txtEmail"
ErrorMessage="* 메일형식이 올바르지 않습니다" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:regularexpressionvalidator></td>
</tr>
<tr>
<td align="center" bgColor="#efefef">
<P align="right">Homepage
</P>
</td>
<td><asp:textbox id="txtHomepage" runat="server" Width="300px" MaxLength="80" BorderStyle="Solid"
BorderWidth="1px"></asp:textbox><FONT style="FONT-SIZE: 9pt" color="#aaaaaa"><I>(Optional)</I></FONT>
<asp:regularexpressionvalidator id="RegularExpressionValidator2" runat="server" Display="None" ControlToValidate="txtHomepage"
ErrorMessage="* 홈페이지를 정확히 작성해주세요." ValidationExpression="http://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?"></asp:regularexpressionvalidator></td>
</tr>
<tr>
<td align="center" bgColor="#efefef">
<P align="right">*제 목
</P>
</td>
<td><asp:textbox id="txtTitle" runat="server" Width="480px" MaxLength="30" BorderStyle="Solid" BorderWidth="1px"></asp:textbox><FONT face="굴림"> </FONT>
<asp:requiredfieldvalidator id="Requiredfieldvalidator2" runat="server" Display="None" ControlToValidate="txtTitle"
ErrorMessage="* 제목을 기입해 주세요"></asp:requiredfieldvalidator></td>
</tr>
<tr>
<td align="center" bgColor="#efefef">
<P align="right">*내 용
</P>
</td>
<td>
<P><asp:textbox id="txtContent" runat="server" Width="480px" BorderStyle="Solid" BorderWidth="1px"
Rows="10" TextMode="MultiLine"></asp:textbox><br>
<asp:requiredfieldvalidator id="RequiredFieldValidator3" runat="server" Display="None" ControlToValidate="txtContent"
ErrorMessage="* 내용을 기입해 주세요"></asp:requiredfieldvalidator></P>
</td>
</tr>
<tr>
<td align="center" bgColor="#efefef">
<P align="right">파일첨부
</P>
</td>
<td><asp:checkbox id="chkUpload" runat="server" Text="이 체크박스를 선택하면 업로드 화면이 나타납니다." AutoPostBack="True"></asp:checkbox><br>
<asp:panel id="Panel1" runat="server" Width="240px" Visible="False" Height="21px">
<INPUT id="fileUpload" style="WIDTH: 290px; HEIGHT: 19px" type="file" size="29" name="File1"
runat="server">
</asp:panel></td>
</tr>
<TR>
<td align="center" bgColor="#efefef">
<P align="right">*인코딩
</P>
</td>
<td><FONT face="굴림"><asp:radiobuttonlist id="rdoEncoding" runat="server" RepeatDirection="Horizontal">
<asp:ListItem Value="Text" Selected="True">Text</asp:ListItem>
<asp:ListItem Value="HTML">HTML</asp:ListItem>
</asp:radiobuttonlist></FONT></td>
</TR>
<tr>
<td align="center" bgColor="#efefef">
<P align="right">*비밀번호
</P>
</td>
<td><asp:textbox id="txtPassword" runat="server" Width="150px" MaxLength="20" BorderStyle="Solid"
BorderWidth="1px" TextMode="Password" EnableViewState="False"></asp:textbox>
<asp:requiredfieldvalidator id="Requiredfieldvalidator5" runat="server" Display="None" ControlToValidate="txtPassword"
ErrorMessage="* 비밀번호를 기입해 주세요"></asp:requiredfieldvalidator></td>
</tr>
</TBODY>
</table>
<P></P>
<p align="center"><A href="list.aspx"></A></p>
<P align="center"><asp:button id="btnWrite" runat="server" Width="80px" BorderStyle="Groove" BorderWidth="1px"
Text="저장" BorderColor="#404040"></asp:button><FONT face="굴림"> </FONT><FONT face="굴림"> </FONT><asp:button id="btnList" runat="server" Width="80px" BorderStyle="Groove" BorderWidth="1px"
Text="리스트" BorderColor="#404040" CausesValidation="False"></asp:button></P>
<P align="center"><asp:validationsummary id="ValidationSummary1" runat="server" DisplayMode="List" ShowMessageBox="True"
ShowSummary="False"></asp:validationsummary></P>
<P><FONT face="굴림"></FONT> </P>
</FONT>
</form>
</body>
</HTML>