예제 #1
0
 public void fillCompanyManagers()
 {
     objmsd = new MasterData();
     dt = objmsd.GetUserList("compmanager");
     ddckComanyManager.DataSource = dt;
     if (dt.Rows.Count > 0)
     {
         ddckComanyManager.DataTextField = "users_name";
         ddckComanyManager.DataValueField = "users_id";
         ddckComanyManager.DataBind();
     }
     else { lblCompanymanager.Text = "No Manager exists";
     lblCompanymanager.Visible = true;
     ddckComanyManager.Visible = false;
     }
 }
예제 #2
0
 public void LoadCompanyMgr()
 {
     objmst = new MasterData();
     dt = objmst.GetUserList("compmanager");
     objcf.FillDropDownList(ddlcompanymgr, dt, "users_name", "users_id");
     ddlcompanymgr.SelectedIndex = ddlcompanymgr.Items.IndexOf(ddlcompanymgr.Items.FindByValue(Convert.ToString(Session["userid"].ToString().ToLower())));
 }