Data Binding ASP.Net Tutorial

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


    Show Pager Settings


    
    

            id="dtlProducts"
        DataSourceID="srcProducts"
        AllowPaging="true"
        Runat="server">
                    Mode="NextPreviousFirstLast"
            FirstPageText="[First Product]"
            LastPageText="[Last Product]"
            NextPageText="[Next Product]"
            PreviousPageText="[Previous Product]" />
    
            id="srcProducts"
        ConnectionString="<%$ ConnectionStrings:Products %>"
        SelectCommand="SELECT Id,Title,Director,InStock FROM Products"
        Runat="server" />
    

    


File: Web.config

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