<!-- BoardWirte.aspx -->
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="BoardWrite.aspx.cs"
Inherits="DotNetNote_BoardWrite" %>
<%@ Register Assembly="FreeTextBox"
Namespace="FreeTextBoxControls"
TagPrefix="FTB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>글 입력</title>
<link href="../DotNetNote/DotNetNote.css"
rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<h3>완성형 게시판</h3>
<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">
<tr>
<td width="100"
bgcolor="#efefef" align="right">
<font color="#ff0000">*</font>이 름
</td>
<td width="500">
<asp:TextBox ID="txtName" runat="server"
BorderWidth="1px" BorderStyle="Solid"
MaxLength="10" Width="150px"></asp:TextBox>
<asp:RequiredFieldValidator ID="valName"
runat="server" ErrorMessage="* 이름을 작성해 주세요."
ControlToValidate="txtName" Display="None"
SetFocusOnError="True"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td bgcolor="#efefef" align="right">
E-mail
</td>
<td>
<asp:TextBox ID="txtEmail" runat="server"
BorderWidth="1px" BorderStyle="Solid"
MaxLength="80" Width="200px"></asp:TextBox>
<font style="font-size: 9pt" color="#aaaaaa">
<i>(Optional)</i></font>
<asp:RegularExpressionValidator
ID="valEmail" runat="server"
ErrorMessage="* 메일형식이 올바르지 않습니다"
ControlToValidate="txtEmail"
Display="None" ValidationExpression=
"\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
SetFocusOnError="True"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td bgcolor="#efefef" align="right">
Homepage
</td>
<td>
<asp:TextBox ID="txtHomepage" runat="server"
BorderWidth="1px" BorderStyle="Solid"
MaxLength="80" Width="300px"></asp:TextBox>
<font style="font-size: 9pt" color="#aaaaaa">
<i>(Optional)</i>
</font>
<asp:RegularExpressionValidator
ID="valHomepage" runat="server"
ErrorMessage="* 홈페이지를 정확히 작성해주세요."
ControlToValidate="txtHomepage"
Display="None" ValidationExpression=
"http://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?"
SetFocusOnError="True">
</asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td align="right" bgcolor="#efefef">
<font color="#ff0000">*</font>제 목
</td>
<td>
<asp:TextBox ID="txtTitle" runat="server"
BorderWidth="1px" BorderStyle="Solid"
MaxLength="30" Width="480px"></asp:TextBox><font
face="굴림"> </font>
<asp:RequiredFieldValidator ID="valTitle"
runat="server" ErrorMessage="* 제목을 기입해 주세요"
ControlToValidate="txtTitle"
Display="None" SetFocusOnError="True">
</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" bgcolor="#efefef">
<font color="#ff0000">*</font>내 용
</td>
<td>
<FTB:FreeTextBox ID="txtContent"
runat="server" Height="200px"
Language="ko-KR" StartMode="HtmlMode"
Width="480px">
</FTB:FreeTextBox>
<br />
<asp:RequiredFieldValidator ID="valContent"
runat="server" ErrorMessage="* 내용을 기입해 주세요"
ControlToValidate="txtContent"
Display="None" SetFocusOnError="True">
</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right" bgcolor="#efefef">
파일첨부
</td>
<td>
<asp:CheckBox ID="chkUpload" runat="server"
Text="이 체크박스를 선택하면 업로드 화면이 나타납니다."
AutoPostBack="True"
OnCheckedChanged="chkUpload_CheckedChanged">
</asp:CheckBox><font style="font-size: 9pt"
color="#aaaaaa"><i>(Optional)</i></font><br />
<asp:Panel ID="pnlFile" runat="server"
Width="240px" Visible="False"
Height="21px">
<input id="txtFileName" style="width: 290px;
height: 19px" type="file" size="29"
name="File1" runat="server">
</asp:Panel>
</td>
</tr>
<tr>
<td align="right" bgcolor="#efefef">
<font color="#ff0000">*</font>인코딩
</td>
<td>
<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:ListItem Value="Mixed">Mixed</asp:ListItem>
</asp:RadioButtonList>
</td>
</tr>
<tr>
<td align="right" bgcolor="#efefef" style="height: 22px">
<font color="#ff0000">*</font>비밀번호
</td>
<td style="height: 22px">
<asp:TextBox ID="txtPassword" runat="server"
BorderWidth="1px" BorderStyle="Solid"
MaxLength="20" Width="150px" TextMode="Password"
EnableViewState="False"></asp:TextBox>
<font style="font-size: 9pt" color="#aaaaaa">
(수정/삭제시에 필요)</font>
<asp:RequiredFieldValidator ID="valPassword"
runat="server" ErrorMessage="* 비밀번호를 기입해 주세요"
ControlToValidate="txtPassword"
Display="None" SetFocusOnError="True">
</asp:RequiredFieldValidator>
</td>
</tr>
</table>
<p align="center">
<asp:Button ID="btnWrite" runat="server"
BorderWidth="1px" BorderStyle="Groove"
Width="80px" BorderColor="#404040"
Text="저장" OnClick="btnWrite_Click">
</asp:Button><font face="굴림"> </font><font
face="굴림"> </font><asp:Button
ID="btnList" runat="server" BorderWidth="1px"
BorderStyle="Groove" Width="80px"
BorderColor="#404040" Text="리스트"
CausesValidation="False" OnClick="btnList_Click">
</asp:Button>
<asp:ValidationSummary ID="valSummary"
runat="server" ShowSummary="False"
ShowMessageBox="True" DisplayMode="List">
</asp:ValidationSummary>
</p>
</div>
</form>
</body>
</html> |