제목 : 검색 페이지 UI 작성 : /BasicCS/Search.aspx
<%@ Page language="c#" Codebehind="Search.aspx.cs" AutoEventWireup="false" Inherits="BasicCSVS.Search" %>
<!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="Search" method="post" runat="server">
<H3>기본 게시판</H3>
<FONT face="굴림"><FONT face="굴림">
<P><FONT style="FONT-SIZE: 9pt; COLOR: #ff0000">글 검색 - 검색 조건에 맞는 항목을 나열합니다.</FONT>
<HR width="100%" SIZE="1">
<P align="center"></P>
</FONT>
<P align="center">
<asp:DataGrid id="DataGrid1" runat="server" BorderColor="#3366CC" BorderWidth="1px" BackColor="White" CellPadding="4" AllowPaging="True" PageSize="5" BorderStyle="None" AutoGenerateColumns="False">
<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">
<asp:Button id="btnWrite" runat="server" BorderColor="#404040" BorderStyle="Groove" BorderWidth="1px" Text="검색종료"></asp:Button></P>
</FONT>
</form>
</body>
</HTML>