1
<%...@ Control Language="C#" AutoEventWireup="true"
2
CodeFile="Search.ascx.cs" Inherits="Upload_SearchControl" %>
3
<h3>검색 결과h3>
4
5
<asp:GridView ID="ctlUploadList" runat="server"
6
AutoGenerateColumns="false" AllowPaging="True"
7
PageSize="3" OnPageIndexChanging="ctlUploadList_PageIndexChanging">
8
<Columns>
9
<asp:BoundField DataField="Num" HeaderText="번호" />
10
<asp:HyperLinkField
11
DataTextField="Title"
12
HeaderText="제목"
13
DataNavigateUrlFormatString="View.aspx?Num={0}"
14
DataNavigateUrlFields="Num" />
15
<asp:TemplateField HeaderText="파일">
16
<ItemTemplate>
17
<a href='files/<%# Eval("FileName") %>'>
18
<%...# Eval("FileName") %>
19
a>
20
/
21
<asp:HyperLink ID="HyperLink1" runat="server"
22
NavigateUrl='<%# "files/" + Eval("FileName") %>'>
23
<%...# Eval("FileName") %>
24
asp:HyperLink>
25
/
26
<asp:HyperLink ID="HyperLink2" runat="server"
27
NavigateUrl=
28
'<%# "Down.aspx?FileName=" + Eval("FileName") %>'>
29
<img src="images/ext_zip.gif" border="0" />
30
asp:HyperLink>
31
ItemTemplate>
32
asp:TemplateField>
33
Columns>
34
asp:GridView>
35
36
<asp:Button ID="btnList" runat="server" Text="검색종료"
37
OnClick="btnList_Click" />