Data Binding ASP.Net Tutorial

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


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

<%# Eval("Title") %>


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

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

    


File: Web.config

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