PageRenderTime 69ms CodeModel.GetById 66ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/source/app/NOS.Wiki/AttachmentViewer.ascx

http://github.com/agross/netopenspace
ASP.NET | 34 lines | 33 code | 1 blank | 0 comment | 0 complexity | 633e54f9b55722f495b4d37f0dfa6c0b MD5 | raw file
 1<%@ Control Language="C#" AutoEventWireup="true" Inherits="ScrewTurn.Wiki.AttachmentViewer" Codebehind="AttachmentViewer.ascx.cs" %>
 2
 3<anthem:Repeater ID="rptItems" runat="server" AutoUpdateAfterCallBack="True" 
 4	OnDataBinding="rptItems_DataBinding" UpdateAfterCallBack="True">
 5	<HeaderTemplate>
 6		<table id="AttachmentViewerTable" class="generic" cellpadding="0" cellspacing="0">
 7			<thead>
 8			<tr class="tableheader">
 9				<th>&nbsp;</th>
10				<th><asp:Literal ID="lblName" runat="server" Text="Name" EnableViewState="False" meta:resourcekey="lblNameResource1" /></th>
11				<th><asp:Literal ID="lblSize" runat="server" Text="Size" EnableViewState="False" meta:resourcekey="lblSizeResource1" /></th>
12			</tr>
13			</thead>
14			<tbody>
15	</HeaderTemplate>
16	<ItemTemplate>
17		<tr class="tablerow">
18			<td><img src="Images/File.png" alt="-" /></td>
19			<td><a href='<%# Eval("Link") %>' title="<%# ScrewTurn.Wiki.Properties.Messages.Download %>"><%# Eval("Name") %></a></td>
20			<td><%# Eval("Size") %></td>
21		</tr>
22	</ItemTemplate>
23	<AlternatingItemTemplate>
24		<tr class="tablerowalternate">
25			<td><img src="Images/File.png" alt="-" /></td>
26			<td><a href='<%# Eval("Link") %>' title="<%# ScrewTurn.Wiki.Properties.Messages.Download %>"><%# Eval("Name") %></a></td>
27			<td><%# Eval("Size") %></td>
28		</tr>
29	</AlternatingItemTemplate>
30	<FooterTemplate>
31		</tbody>
32		</table>
33	</FooterTemplate>
34</anthem:Repeater>