<%@ Page Title="" Language="C#" MasterPageFile="~/yonetim/AnaPage.Master" AutoEventWireup="true" CodeBehind="Galeri.aspx.cs" Inherits="OzsenLojistik.yonetim.Galeri" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
    .auto-style1 {
        width: 100%;
    }
    .auto-style2 {
        width: 130px;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="auto-style1">
    <tr>
        <td class="auto-style2">Resim Seçiniz</td>
        <td>:
            <asp:FileUpload ID="FuResim" runat="server" />
        </td>
    </tr>
    <tr>
        <td class="auto-style2">&nbsp;</td>
        <td>
            <asp:Button ID="btnEkle" runat="server" OnClick="btnEkle_Click" Text="Galeriye Ekle" />
        </td>
    </tr>
    <tr>
        <td class="auto-style2">&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
</table>

    <table class="auto-style1">
        <tr>
            <td class="auto-style5">&nbsp;</td>
            <td>
     
            <br />
        
                <br />
             <asp:DataList ID="DlisResimler" runat="server" RepeatDirection="Horizontal" RepeatColumns="8">
        <ItemTemplate>
                <table class="auto-style1">
                    
                    <tr>
                        <td>  <img src="/Resimler/Galeri/<%#Eval("Resim")%> " width="170" height="150" alt="" /></td>
                    </tr>
                    <tr>
                        <td> 
               <a onclick="return confirm('Bu resmi silmek istediğinizden emin misiniz?');" href="Galeri.aspx?Resim=<%#Eval("ResimId")%>&islem=sil"> <span class="span-red">Resmi Sil</span></a></td>
                    </tr>
          
                </table>
              </ItemTemplate>
    </asp:DataList>
            
            </td>
             
        </tr>
    </table>
    <br />
</asp:Content>
