ADO Database ASP.Net

using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MyControls
{
    public class PagePropertyParameter : Parameter
    {
        private string _propertyName;
        protected override object Evaluate(HttpContext context, Control control)
        {
            return DataBinder.Eval(control.Page, PropertyName);
        }
        public string PropertyName
        {
            get { return _propertyName; }
            set { _propertyName = value; }
        }
    }
}
          
File: ShowPagePropertyParameter.aspx
<%@ Page Language="C#" %>
<%@ Register TagPrefix="custom" Namespace="MyControls" %>
   "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

    Public ReadOnly Property CurrentUsername() As String
        Get
            Return User.Identity.Name
        End Get
    End Property



    Show Page Property Parameter


    
            id="frmGuestbook"
        DataSourceID="srcGuestbook"
        DefaultMode="Insert"
        Runat="server">
        
                    ID="lblComment"
            Text="Comment:"
            AssociatedControlID="txtComment"
            Runat="server" />
                    id="txtComment"
            Text='<%# Bind("comment") %>'
            TextMode="MultiLine"
            Runat="server" />
                    id="btnInsert"
            Text="Add Entry"
            CommandName="Insert"
            Runat="server" />
        

    
            id="grdGuestbook"
        DataSourceID="srcGuestbook"
        CssClass="guestbook"
        Runat="server" />
            id="srcGuestbook"
        TypeName="YourDataSource"
        SelectMethod="Getter"
        Runat="server">
        
                    Name="Username"
            PropertyName="CurrentUsername" />