ADO Database ASP.Net

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


    
    

            id="dtlProducts"
        DataSourceID="srcProducts"
        DataKeyNames="Id"
        AllowPaging="true"
        AutoGenerateEditButton="true"
        AutoGenerateInsertButton="true"
        AutoGenerateDeleteButton="true"
        AutoGenerateRows="false"
        CssClass="detailsView"
        PagerSettings-Mode="NumericFirstLast"
        Runat="server">
        
                    HeaderText="Product Id:" ReadOnly="true" InsertVisible="false" />
        
        
        

    
            id="srcProducts"
        SelectCommand="SELECT Id,Title,Director FROM Products"
        InsertCommand="INSERT Products (Title,Director,CategoryId,DateReleased)VALUES (@Title, @Director,0,'12/15/1966')"
        UpdateCommand="UPDATE Products SET Title=@Title,Director=@Director WHERE Id=@Id"
        DeleteCommand="DELETE Products WHERE Id=@Id"
        ConnectionString="<%$ ConnectionStrings:Products %>"
        Runat="server" />
    

    


File: Web.config

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