Example #1
0
        private void GetConditionData()
        {
            StructureConditionBLL BLLobj = new StructureConditionBLL();


            ddlRoofCondition.DataSource     = BLLobj.GetStructureCondition();
            ddlRoofCondition.DataTextField  = "StructureConditionName";
            ddlRoofCondition.DataValueField = "StructureConditionID";
            ddlRoofCondition.DataBind();

            ddlWallsCondition.DataSource     = BLLobj.GetStructureCondition();
            ddlWallsCondition.DataTextField  = "StructureConditionName";
            ddlWallsCondition.DataValueField = "StructureConditionID";
            ddlWallsCondition.DataBind();

            ddlFloorCondition.DataSource     = BLLobj.GetStructureCondition();
            ddlFloorCondition.DataTextField  = "StructureConditionName";
            ddlFloorCondition.DataValueField = "StructureConditionID";
            ddlFloorCondition.DataBind();

            ddlWindowsCondition.DataSource     = BLLobj.GetStructureCondition();
            ddlWindowsCondition.DataTextField  = "StructureConditionName";
            ddlWindowsCondition.DataValueField = "StructureConditionID";
            ddlWindowsCondition.DataBind();
        }
Example #2
0
        /// <summary>
        /// to assign values to dropdownlist
        /// </summary>
        private void GetCondition()
        {
            StructureConditionBLL BLLobj = new StructureConditionBLL();

            conditionDropDownList.DataSource     = BLLobj.GetStructureCondition();
            conditionDropDownList.DataTextField  = "StructureConditionName";
            conditionDropDownList.DataValueField = "StructureConditionID";
            conditionDropDownList.DataBind();
            conditionDropDownList.Items.Insert(0, new ListItem("--Select--", "0"));
        }