<%@ Page language="c#" Codebehind="Write.aspx.cs" AutoEventWireup="false" Inherits="SampleCS.Reply.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">
    </HEAD>
    <body leftMargin="0" topMargin="0" MS_POSITIONING="FlowLayout">
        <form id="Write" method="post" 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">
                        <tr>
                            <td align="center" width="100" bgColor="#efefef">
                                <P align="right">*이  름
                                </P>
                            </td>
                            <td width="500"><asp:textbox id="txtName" runat="server" BorderWidth="1px" BorderStyle="Solid" MaxLength="10"
                                    Width="150px"></asp:textbox><FONT face="굴림"> 
                                    <asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" ErrorMessage="* 이름을 작성해 주세요." ControlToValidate="txtName"
                                        Display="None"></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" BorderWidth="1px" BorderStyle="Solid" MaxLength="80"
                                    Width="200px"></asp:textbox><FONT style="FONT-SIZE: 9pt" color="#aaaaaa"><I>(Optional)</I></FONT>
                                <asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server" ErrorMessage="* 메일형식이 올바르지 않습니다"
                                    ControlToValidate="txtEmail" Display="None" 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" BorderWidth="1px" BorderStyle="Solid" MaxLength="80"
                                    Width="300px"></asp:textbox><FONT style="FONT-SIZE: 9pt" color="#aaaaaa"><I>(Optional)</I></FONT>
                                <asp:regularexpressionvalidator id="RegularExpressionValidator2" runat="server" ErrorMessage="* 홈페이지를 정확히 작성해주세요."
                                    ControlToValidate="txtHomepage" Display="None" 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" BorderWidth="1px" BorderStyle="Solid" MaxLength="30"
                                    Width="480px"></asp:textbox><FONT face="굴림"> </FONT>
                                <asp:requiredfieldvalidator id="Requiredfieldvalidator2" runat="server" ErrorMessage="* 제목을 기입해 주세요" ControlToValidate="txtTitle"
                                    Display="None"></asp:requiredfieldvalidator></td>
                        </tr>
                        <tr>
                            <td align="center" bgColor="#efefef">
                                <P align="right">*내  용
                                </P>
                            </td>
                            <td>
                                <P><asp:textbox id="txtContent" runat="server" BorderWidth="1px" BorderStyle="Solid" Width="480px"
                                        TextMode="MultiLine" Rows="10"></asp:textbox><br>
                                    <asp:requiredfieldvalidator id="RequiredFieldValidator3" runat="server" ErrorMessage="* 내용을 기입해 주세요" ControlToValidate="txtContent"
                                        Display="None"></asp:requiredfieldvalidator></P>
                            </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:ListItem Value="Mixed">Mixed</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" BorderWidth="1px" BorderStyle="Solid" MaxLength="20"
                                    Width="150px" TextMode="Password" EnableViewState="False"></asp:textbox> 
                                <asp:requiredfieldvalidator id="Requiredfieldvalidator5" runat="server" ErrorMessage="* 비밀번호를 기입해 주세요" ControlToValidate="txtPassword"
                                    Display="None"></asp:requiredfieldvalidator></td>
                        </tr>
                    </table>
                <P></P>
                <p align="center"><A href="list.aspx"></A></p>
                <P align="center"><asp:button id="btnWrite" runat="server" BorderWidth="1px" BorderStyle="Groove" Width="80px"
                        BorderColor="#404040" Text="저장"></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"></asp:button></P>
                <P align="center"><asp:validationsummary id="ValidationSummary1" runat="server" ShowSummary="False" ShowMessageBox="True"
                        DisplayMode="List"></asp:validationsummary></P>
                <P><FONT face="굴림"></FONT> </P>
            </FONT>
        </form>
    </body>
</HTML>