Beispiel #1
0
 void DisplayStaff()
 {
     ClassLibrary.clsStaffCollection Staff = new ClassLibrary.clsStaffCollection();
     lstStaffList.DataSource     = Staff.StaffList;
     lstStaffList.DataValueField = "StaffID";
     lstStaffList.DataTextField  = "PostCode";
     lstStaffList.DataBind();
 }
    void DisplayStaffs()
    {
        ClassLibrary.clsStaffCollection Staffs = new ClassLibrary.clsStaffCollection();
        lstStaffList.DataSource     = Staffs.StaffList;
        lstStaffList.DataValueField = "StaffId";
        lstStaffList.DataTextField  = "StaffFirstName1";

        lstStaffList.DataBind();
    }