ADO Database ASP.Net

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

    protected void srcGuestBook_Inserting(object sender, SqlDataSourceCommandEventArgs e)
    {
        e.Command.Parameters.Add(new SqlParameter("@Name", User.Identity.Name));
    }



    Show ProfileParameter


    
    

            id="frmGuestBook"
        DataSourceID="srcGuestBook"
        DefaultMode="Insert"
        Runat="server">
        
                    id="lblComments"
            Text="Enter Your Comments:"
            Runat="server" />
                    id="txtComments"
            Text='<%# Bind("Comments") %>'
            TextMode="MultiLine"
            Columns="50"
            Rows="4"
            Runat="server" />
                    id="btnInsert"
            Text="Add Comments"
            CommandName="Insert"
            Runat="server" />
        

    
            id="grdGuestBook"
        DataSourceID="srcGuestBook"
        Runat="server" />
            id="srcGuestBook"
        SelectCommand="SELECT Name,Comments,EntryDate
            FROM GuestBook ORDER BY Id DESC"
        InsertCommand="INSERT GuestBook (Name,Comments)
            VALUES (@Name,@Comments)"
        ConnectionString="<%$ ConnectionStrings:GuestBook %>"
        Runat="server" OnInserting="srcGuestBook_Inserting" />
    

    


File: Web.config

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