Data Binding ASP.Net Tutorial

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


    
    
            id="frmProducts"
        DataSourceID="srcProducts"
        AllowPaging="true"
        Runat="server">
        
        

<%# Eval("Title") %>


        Directed By:
        <%# Eval("Director") %>
        
        In Theaters:
        <%#Eval("InStock") %>
        
                    id="lnkNew"
            Text="New Product"
            CommandName="New"
            Runat="server" />
        

        
                    id="lblTitle"
            Text="Product Title:"
            AssociatedControlID="txtTitle"
            Runat="server" />
        
                    id="txtTitle"
            Text='<%# Bind("Title") %>
            Runat="server" />
        
                    id="lblDirector"
            Text="Product Director:"
            AssociatedControlID="txtDirector"
            Runat="server" />
        
                    id="txtDirector"
            Text='<%# Bind("Director") %>
            Runat="server" />
        
                    id="chkInStock"
            Text="In Theaters"
            Checked='<%# Bind("InStock") %>
            Runat="server" />
        
                    id="lnkInsert"
            Text="Insert Product"
            CommandName="Insert"
            Runat="server" />
        |
                    id="lnkCancel"
            Text="Cancel Insert"
            CommandName="Cancel"
            Runat="server" />
        

    
            id="srcProducts"
        ConnectionString="<%$ ConnectionStrings:Products %>"
        SelectCommand="SELECT Id,Title,Director,InStock
            FROM Products"
        InsertCommand="INSERT Products (Title,Director,InStock)
            VALUES (@Title,@Director,
        Runat="server" />
    

    


            
File: Web.config

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