ADO Net Database ASP.Net Tutorial

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


    
    

            id="grdProducts"
        DataSourceID="srcProducts"
        CssClass="gridView"
        Runat="server" />
            id="srcProducts"
        SelectCommand="CountProductsInCategory"
        SelectCommandType="StoredProcedure"
        ConnectionString="<%$ ConnectionStrings:Products %>"
        Runat="server" />
    

    


File: Web.config

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