ADO Net Database ASP.Net Tutorial

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


    
    

            id="txtTitle"
        Runat="server" />
            id="btnMatch"
        Text="Match"
        Runat="server" />
    
            id="grdProducts"
        DataSourceId="srcProducts"
        Runat="server" />
            id="srcProducts"
        SelectCommand="SELECT Id,Title,Director,DateReleased FROM Products"
        FilterExpression="Title LIKE '{0}%'"
        ConnectionString="<%$ ConnectionStrings:Products %>"
        Runat="server">
        
            
        

    
    

    


File: Web.config

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