Example #1
0
 private void LoadAccounts()
 {
     Database data = new Database();
     lstAccounts.DataSource =  data.GetClosedAccounts(User.EmployeeID);
     lstAccounts.DataTextField = "strAccountName";
     lstAccounts.DataValueField = "intAccountID";
     lstAccounts.DataBind();
     data.Close();
     data.Dispose();
 }