<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Edit.ascx.cs" Inherits="DotNetNuke.Modules.SilverlightAlbum.Edit" %>
<table width="100%">
<tr>
<td>
<asp:Label ID="lblMessage" runat="server" EnableViewState="false" ForeColor="red"></asp:Label></td>
<td align="right">
<asp:LinkButton ID="lnkBack" runat="server" OnClick="lnkBack_Click">[Back]</asp:LinkButton></td>
</tr>
<tr>
<td>
</td>
<td align="right">
</td>
</tr>
<tr>
<td align="left" colspan="2">
<asp:Panel ID="pnlUpload" runat="server">
Upload Picture: <asp:FileUpload ID="txtFileName" runat="server" /> <asp:Button
ID="btnUpload" runat="server" OnClick="btnUpload_Click" Text="Upload" /> <br />
</asp:Panel>
<asp:Label ID="lblMaxUploaded" runat="server" Text="The maximum number of pictures have been uploaded"></asp:Label></td>
</tr>
<tr>
<td>
</td>
<td align="right">
</td>
</tr>
<tr>
<td>
<asp:ObjectDataSource ID="ODS_Pictures" runat="server" OldValuesParameterFormatString="original_{0}"
OnInit="Page_Load" SelectMethod="GetPictures" TypeName="DotNetNuke.Modules.SilverlightAlbum.Edit_DAL"
OnSelecting="ODS_Pictures_Selecting" DataObjectTypeName="DotNetNuke.Modules.SilverlightAlbum.PicturesInfo"
DeleteMethod="DeletePicture">
<SelectParameters>
<asp:Parameter DefaultValue="00" Name="ModuleId" Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
</td>
<td align="right">
</td>
</tr>
<tr>
<td align="center" colspan="2">
<hr />
<br />
<asp:GridView ID="gvPictures" runat="server" AutoGenerateColumns="False" DataSourceID="ODS_Pictures"
AllowPaging="True" BackColor="White" BorderColor="White" BorderStyle="Ridge"
BorderWidth="2px" CellPadding="3" DataKeyNames="PictureID" OnRowDeleted="gvPictures_RowDeleted"
PageSize="5" ShowHeader="False" CellSpacing="1" GridLines="None" OnRowDeleting="gvPictures_RowDeleting"
OnRowCreated="gvPictures_RowCreated">
<Columns>
<asp:CommandField ShowDeleteButton="True" />
<asp:BoundField DataField="PictureID" HeaderText="PictureID" SortExpression="PictureID"
Visible="False" />
<asp:BoundField DataField="ModuleId" HeaderText="ModuleId" SortExpression="ModuleId"
Visible="False" />
<asp:TemplateField>
<ItemTemplate>
<asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("Picture") %>' />
</ItemTemplate>
</asp:TemplateField>
</Columns>
<PagerSettings Position="TopAndBottom" />
<FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
<RowStyle ForeColor="Black" BackColor="#DEDFDE" />
<SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
</asp:GridView>
<br />
<hr />
</td>
</tr>
<tr>
<td>
</td>
<td align="right">
</td>
</tr>
<tr>
<td>
</td>
<td align="right">
</td>
</tr>
</table>