ADO Net Database ASP.Net Tutorial

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


    Show DetailsView Explicit


    
    

            id="dtlProduct"
        DataKeyNames="Id"
        DataSourceID="srcProducts"
        AutoGenerateEditButton="true"
        DefaultMode="Edit"
        AllowPaging="true"
        runat="server" />
            id="srcProducts"
        ConnectionString="<%$ ConnectionStrings:Products %>"
        SelectCommand="Select * FROM Products"
        UpdateCommand="UPDATE Products SET Title=@Title,Director=@Director,
            DateReleased=@DateReleased WHERE Id=@id"
        Runat="server">
        
                      Type="String" Size="100" DefaultValue="Untitled" />
                      Type="String" Size="100" DefaultValue="Alan Smithee" />
          
          
        

    
    

    


File: Web.config

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