<%@ Page Title="" Language="C#" MasterPageFile="~/BSoylu.master" AutoEventWireup="true" CodeFile="AnaSayfadanSil.aspx.cs" Inherits="Default2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
        DataKeyNames="ID" DataSourceID="AccessDataSource1" EnableModelValidation="True" 
        ForeColor="#333333" GridLines="None" Width="100%">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
            <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                ReadOnly="True" SortExpression="ID" />
            <asp:BoundField DataField="Baslik" HeaderText="Baslik" 
                SortExpression="Baslik" />
            <asp:BoundField DataField="Icerik" HeaderText="Icerik" 
                SortExpression="Icerik" />
            <asp:BoundField DataField="Tarih" HeaderText="Tarih" SortExpression="Tarih" />
        </Columns>
        <EditRowStyle BackColor="#7C6F57" />
        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#E3EAEB" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
    </asp:GridView>
    <asp:AccessDataSource ID="AccessDataSource1" runat="server" 
        ConflictDetection="CompareAllValues" DataFile="~/App_Data/BSoylu.mdb" 
        DeleteCommand="DELETE FROM [Anasayfa] WHERE [ID] = ? AND (([Baslik] = ?) OR ([Baslik] IS NULL AND ? IS NULL)) AND (([Icerik] = ?) OR ([Icerik] IS NULL AND ? IS NULL)) AND (([Tarih] = ?) OR ([Tarih] IS NULL AND ? IS NULL))" 
        InsertCommand="INSERT INTO [Anasayfa] ([ID], [Baslik], [Icerik], [Tarih]) VALUES (?, ?, ?, ?)" 
        OldValuesParameterFormatString="original_{0}" 
        SelectCommand="SELECT * FROM [Anasayfa]" 
        UpdateCommand="UPDATE [Anasayfa] SET [Baslik] = ?, [Icerik] = ?, [Tarih] = ? WHERE [ID] = ? AND (([Baslik] = ?) OR ([Baslik] IS NULL AND ? IS NULL)) AND (([Icerik] = ?) OR ([Icerik] IS NULL AND ? IS NULL)) AND (([Tarih] = ?) OR ([Tarih] IS NULL AND ? IS NULL))">
        <DeleteParameters>
            <asp:Parameter Name="original_ID" Type="Int32" />
            <asp:Parameter Name="original_Baslik" Type="String" />
            <asp:Parameter Name="original_Baslik" Type="String" />
            <asp:Parameter Name="original_Icerik" Type="String" />
            <asp:Parameter Name="original_Icerik" Type="String" />
            <asp:Parameter Name="original_Tarih" Type="String" />
            <asp:Parameter Name="original_Tarih" Type="String" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="ID" Type="Int32" />
            <asp:Parameter Name="Baslik" Type="String" />
            <asp:Parameter Name="Icerik" Type="String" />
            <asp:Parameter Name="Tarih" Type="String" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="Baslik" Type="String" />
            <asp:Parameter Name="Icerik" Type="String" />
            <asp:Parameter Name="Tarih" Type="String" />
            <asp:Parameter Name="original_ID" Type="Int32" />
            <asp:Parameter Name="original_Baslik" Type="String" />
            <asp:Parameter Name="original_Baslik" Type="String" />
            <asp:Parameter Name="original_Icerik" Type="String" />
            <asp:Parameter Name="original_Icerik" Type="String" />
            <asp:Parameter Name="original_Tarih" Type="String" />
            <asp:Parameter Name="original_Tarih" Type="String" />
        </UpdateParameters>
    </asp:AccessDataSource>
</asp:Content>

