<%@ Control Language="vb" AutoEventWireup="false" Codebehind="Attachments.ascx.vb" Inherits="ASPNET.StarterKit.IssueTracker.Attachments" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<asp:DataGrid id="grdAttachments" Font-Size="12pt" AutoGenerateColumns="false" PageSize="5" Width="600"
	BorderColor="White" BorderStyle="None" CellPadding="2" Runat="Server">
	<ItemStyle VerticalAlign="top" />
	<Columns>
		<asp:TemplateColumn>
			<ItemTemplate>
				<a href='DownloadAttachment.aspx?id=<%# DataBinder.Eval(Container.DataItem, "Id")%>'>
					view</a> &nbsp;
				<asp:LinkButton ID="lnkDelete" Text="delete" visible="False" runat="Server" />
			</ItemTemplate>
		</asp:TemplateColumn>
		<asp:TemplateColumn>
			<ItemTemplate>
				<a href='DownloadAttachment.aspx?id=<%# DataBinder.Eval(Container.DataItem, "Id")%>'>
					<%# DataBinder.Eval(Container.DataItem, "FileName")%>
				</a>
				<br />
				Uploaded by
				<%# DataBinder.Eval(Container.DataItem, "CreatorDisplayName")%>
				on
				<%# DataBinder.Eval(Container.DataItem, "DateCreated")%>
				<hr />
			</ItemTemplate>
		</asp:TemplateColumn>
	</Columns>
</asp:DataGrid>
<p>
	<b>Add Attachment:</b> <input id="upAttachment" type="file" runat="Server" NAME="upAttachment">
	&nbsp;
	<asp:Button id="btnAdd" Text="Add Attachment" CssClass="standardText" runat="Server" />&nbsp;
</p>
