Data Binding ASP.Net Tutorial

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


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

<%# Eval("Title") %>


        Directed By:
        <%# Eval("Director") %>
        
        Box Office Totals:
        <%#Eval("Totals", "{0:c}") %>
        

        
        
        
        Page: <%# frmProducts.PageIndex + 1 %>
        

        
                    id="lnkPrevious"
            Text="Previous Page"
            CommandName="Page"
            CommandArgument="Prev"
            Runat="server" />
        |
                    id="lnkNext"
            Text="Next Page"
            CommandName="Page"
            CommandArgument="Next"
            Runat="server" />
        

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

    


File: Web.config

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