public void getDDLdata() { DDLtargetperson.DataSource = BindGvAllocateDetail(DDLsuperzone.SelectedValue.ToString(), Convert.ToInt32(strFY), ""); //Masters.Get_AreaZone_Zone_SuperZone(Convert.ToInt32(DDLsuperzone.SelectedValue.ToString()), "Zone"); DDLtargetperson.DataBind(); DDLtargetperson.Enabled = true; DDLtargetperson.Focus(); }
public void BindSalesman() { DDLtargetperson.DataSource = TargetMaster.Get_Employee_onUserLogin(EmpCode, "Allocate"); DDLtargetperson.DataBind(); DataTable dt = new DataTable(); dt = TargetMaster.Get_Employee_onUserLogin(Session["UserName"].ToString(), "Allocate").Tables[1]; if (dt.Rows.Count > 0) { lbltargetid.Text = dt.Rows[0]["TargetID"].ToString(); } }
public void BindSalesman() { DDLtargetperson.DataSource = TargetMaster.Get_Employee_onUserLogin(EmpCode, "Target"); DDLtargetperson.DataBind(); DDLtargetperson.Items.Insert(0, new ListItem("-- Select --", "0")); }