ADO Database ASP.Net

<%@ Page Language="C#" %>
   "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">


    Show Delete


    
    

            id="dtlProducts"
        AllowPaging="true"
        DataSourceID="srcProducts"
        DataKeyNames="Id"
        AutoGenerateInsertButton="true"
        AutoGenerateDeleteButton="true"
        AutoGenerateRows="false"
        Runat="server">
        
                    DataField="Id"
            HeaderText="ID:"
            InsertVisible="false" />
                    DataField="Title"
            HeaderText="Title:" />
                    DataField="Director"
            HeaderText="Director:" />
                    DataField="InStocks"
            HeaderText="In Stocks:" />
        

    
            id="srcProducts"
        ConnectionString="<%$ ConnectionStrings:Products %>"
        SelectCommand="SELECT Id,Title,Director,InStocks FROM Products"
        InsertCommand="INSERT Products (Title,Director,InStocks) VALUES (@Title,@Director,
        DeleteCommand="DELETE Products WHERE id=@Id"
        Runat="server" />
    

    


File: Web.config

  
             connectionString="Data Source=.\SQLEXPRESS;
         AttachDbFilename=|DataDirectory|MyDatabase.mdf;Integrated Security=True;User Instance=True" />