ADO Database ASP.Net

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


    Template Edit


    
    

            id="dtlProducts"
        AutoGenerateRows="false"
        AutoGenerateEditButton="true"
        AllowPaging="true"
        DefaultMode="Edit"
        DataSourceID="srcProducts"
        DataKeyNames="Id"
        Runat="server">
        
    
    
            id="txtTitle"
        Text='<%# Bind("Title") %>'
        runat="server" />
            id="reqTitle"
        ControlToValidate="txtTitle"
        Text="(required)"
        Display="Dynamic"
        Runat="server" />
    

    
    
    
            id="txtTotals"
        Text='<%# Bind("Totals", "{0:f}") %>'
        runat="server" />
            id="reqTotals"
        ControlToValidate="txtTotals"
        Text="(required)"
        Display="Dynamic"
        Runat="server" />
            id="cmpTotals"
        ControlToValidate="txtTotals"
        Text="(invalid)"
        Display="Dynamic"
        Operator="DataTypeCheck"
        Type="currency"
        Runat="server" />
    

    
    


    id="srcProducts"
    ConnectionString="<%$ ConnectionStrings:Products %>"
    SelectCommand="SELECT Id,Title,Totals FROM Products"
    UpdateCommand="UPDATE Products SET Title=@Title, Totals=@Totals WHERE Id=@Id"
    Runat="server" />
    

    


File: Web.config

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