protected void ddldivision_SelectedIndexChanged(object sender, EventArgs e)
        {
            ddlWorkUnit.Items.Clear();
            DataTable dtWorkUnit = WorkUnitBLL.GetWorkUnit(new Guid(ddldivision.SelectedValue.ToString()));

            ddlWorkUnit.DataSource     = dtWorkUnit;
            ddlWorkUnit.DataTextField  = "Description";
            ddlWorkUnit.DataValueField = "ID";
            ddlWorkUnit.DataBind();
        }
Exemple #2
0
        protected void ddldivision_SelectedIndexChanged(object sender, EventArgs e)
        {
            //ecxlookup.ECXLookup lkp = new ecxlookup.ECXLookup();
            //DataTable dt = lkp.GetActiveUnits(new Guid("33673ac2-7888-42d5-9712-522941b3208c"),new Guid(ddldivision.SelectedValue.ToString()));
            ddlWorkUnit.Items.Clear();

            DataTable dtWorkUnit = new DataTable();

            dtWorkUnit                 = WorkUnitBLL.GetWorkUnit(new Guid(ddldivision.SelectedValue.ToString()));
            ddlWorkUnit.DataSource     = dtWorkUnit;
            ddlWorkUnit.DataTextField  = "Description";
            ddlWorkUnit.DataValueField = "ID";
            ddlWorkUnit.DataBind();
            ddlWorkUnit.SelectedItem.Equals("--Select--");
        }