제목 : 출력 페이지 UI 작성 : /BasicCS/List.aspx
<%@ Page language="c#" Codebehind="List.aspx.cs" AutoEventWireup="false" Inherits="BasicCS.List" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>글 목록</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="List" method="post" runat="server">
<H3>기본 게시판</H3>
<FONT face="굴림">
<P><FONT style="FONT-SIZE: 9pt; COLOR: #ff0000"> 글 목록 - 기본 게시판입니다.</FONT>
<HR width="100%" SIZE="1">
<P align="center">
</FONT>
<asp:datagrid id="DataGrid1" runat="server" AutoGenerateColumns="False" BorderStyle="None" AllowPaging="True" CellPadding="4" BackColor="White" BorderWidth="1px" BorderColor="#3366CC">
<SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
<ItemStyle ForeColor="#003399" BackColor="White"></ItemStyle>
<AlternatingItemStyle ForeColor="#003399" BackColor="#F1F0FB"></AlternatingItemStyle>
<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#003399"></HeaderStyle>
<FooterStyle ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
<Columns>
<asp:HyperLinkColumn DataNavigateUrlField="Num" DataNavigateUrlFormatString="View.aspx?Num={0}" DataTextField="Title" HeaderText="제 목">
<HeaderStyle Width="420px" HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Left"></ItemStyle>
</asp:HyperLinkColumn>
<asp:BoundColumn DataField="Name" HeaderText="작성자">
<HeaderStyle Width="60px" HorizontalAlign="Center"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="PostDate" HeaderText="작성일" DataFormatString="{0:yyyy-MM-dd}">
<HeaderStyle Width="70px" HorizontalAlign="Center"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="ReadCount" HeaderText="조회">
<HeaderStyle Width="30px" HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Right"></ItemStyle>
</asp:BoundColumn>
</Columns>
<PagerStyle HorizontalAlign="Right" ForeColor="#003399" BackColor="#99CCCC" Mode="NumericPages"></PagerStyle>
</asp:datagrid></P>
<P align="center"><FONT face="굴림"> </FONT>
<asp:dropdownlist id="SearchField" runat="server">
<asp:ListItem Value="Name">이름</asp:ListItem>
<asp:ListItem Value="Title">제목</asp:ListItem>
<asp:ListItem Value="Content">내용</asp:ListItem>
</asp:dropdownlist>
<asp:textbox id="SearchQuery" runat="server" BorderWidth="1px" BorderStyle="Solid" Height="21px" Width="200px"></asp:textbox>
<asp:button id="btnSearch" runat="server" Text="검 색" BorderWidth="1px" BorderStyle="Solid"></asp:button></P>
<P align="center"><asp:button id="btnWrite" runat="server" BorderStyle="Groove" BorderWidth="1px" BorderColor="#404040" Text="글쓰기" CausesValidation="False"></asp:button></P>
<P align="center"><asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" ControlToValidate="SearchField" Display="None" ErrorMessage="검색할 단어를 입력하세요."></asp:requiredfieldvalidator></P>
<P align="center"><asp:validationsummary id="ValidationSummary1" runat="server" ShowSummary="False" ShowMessageBox="True"></asp:validationsummary></P>
<P><FONT face="굴림"></FONT> </P>
</FONT></FONT></form>
</body>
</HTML>