Data Binding ASP.Net Tutorial

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


    Sort ListView


    
    

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

                

                                                    id="lnkTitle"
                            Text="Title"
                            CommandName="Sort"
                            CommandArgument="Title"
                            Runat="server" />
                        

                                                    id="LinkButton1"
                            Text="Director"
                            CommandName="Sort"
                            CommandArgument="Director"
                            Runat="server" />
                        

            

            
                
                    <%# Eval("Title") %>
                    <%# Eval("Director") %>
                
            

            
                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" />