ADO Database ASP.Net

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


    Show Insert


    
    

            id="dtlProducts"
        AllowPaging="true"
        DataSourceID="srcProducts"
        AutoGenerateInsertButton="true"
        Runat="server" />
            id="srcProducts"
        ConnectionString="<%$ ConnectionStrings:Products %>"
        SelectCommand="SELECT Title,Director,InStocks FROM Products"
        InsertCommand="INSERT Products (Title,Director,InStocks)
            VALUES (@Title,@Director,
        Runat="server" />
    

    


File: Web.config

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