void FilterUsername() { //create an instance of the booking collection clsCustomerCollection C = new clsCustomerCollection(User.Identity.Name); C.FilterbyUserName(); //set the data source to the list of bookings in the collection lstCust.DataSource = C.CustomerList; //set the name of the primary key lstCust.DataValueField = "CustomerID"; //set the data field to display lstCust.DataTextField = "Name"; //bind the data to the list lstCust.DataBind(); }