Data Binding ASP.Net Tutorial

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


    Simple ListView


    
                    ID="lstProducts"
            DataSourceId="srcProducts"
            runat="server">
            
                
                                            id="itemPlaceholder"
                        runat="server" />
                

            
            
                
                <%# Eval("Title") %>
                

            
            
                
                <%# Eval("Title") %>
                

            
            
                No records found
            

        
                    id="srcProducts"
            SelectCommand="SELECT Id, Title, Director FROM Product"
            ConnectionString='<%$ ConnectionStrings:Products %>'
            Runat="server" />
    


File: Web.config

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