Data Binding ASP.Net Tutorial

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


    
    

            id="ddlProductCategory"
        DataSourceID="srcProductCategories"
        DataTextField="Name"
        DataValueField="Id"
        Runat="server" />
            id="btnSelect"
        Text="Select"
        Runat="server" />
            id="grdProducts"
        DataSourceID="srcProducts"
        CssClass="gridView"
        Runat="server" />
            id="srcProductCategories"
        SelectCommand="SELECT Id, Name FROM ProductCategories"
        ConnectionString="<%$ ConnectionStrings:Products %>"
        Runat="server" />
            id="srcProducts"
        SelectCommand="SELECT Title,Director FROM Products
            WHERE CategoryId=@Id"
        ConnectionString="<%$ ConnectionStrings:Products %>"
        Runat="server">
        
                    Name="Id"
            ControlID="ddlProductCategory"
            PropertyName="SelectedValue" />
        

    
    

    


File: Web.config

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