Data Binding ASP.Net Tutorial

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

    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        grdProducts.Visible = true;
    }



    Show Empty Data Text


    
    

            id="txtTitle"
        Runat="server" />
            id="btnSubmit"
        Text="Search"
        OnClick="btnSubmit_Click"
        Runat="server" />
    
            id="grdProducts"
        DataSourceID="srcProducts"
        EmptyDataText="No Matching Products!"
        Visible="false"
        Runat="server" />
            id="srcProducts"
        ConnectionString="<%$ ConnectionStrings:Products %>"
        SelectCommand="SELECT Title,Director FROM Products WHERE Title LIKE @Title+'%'"
        Runat="server">
        
                    Name="Title"
            ControlID="txtTitle"
            PropertyName="Text" />
        

    
    

    


File: Web.config

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