private void setComboUsers() { Business.BsUser u = new Business.BsUser(); Business.BsUsers us = u.GetObjects(); for (int i = 0; i < us.Count; i++) { lstIUsers.Items.Add(new ListItem(us[i].Name, us[i].Id + "")); } }
private void Search() { enabledSearch(); Business.BsUser objUser = new Business.BsUser(); objUser.Login = txtPLogin.Text; objUser.Name = txtPName.Text; dgUsers.DataSource = objUser.GetObjects(); try { dgUsers.DataBind(); } catch { dgUsers.CurrentPageIndex = 0; dgUsers.DataBind(); } }