Ejemplo n.º 1
0
        /// <summary>
        /// to assign values to dropdownlist
        /// </summary>
        private void GetOccupantstatus()
        {
            PermanentStructureBLL BLLobj = new PermanentStructureBLL();

            occupantstatusDropDownList.DataSource     = BLLobj.GetOccupantstatus();
            occupantstatusDropDownList.DataTextField  = "OCCUPANTSTATUS";
            occupantstatusDropDownList.DataValueField = "OCCUPANTSTATUSID";
            occupantstatusDropDownList.DataBind();
            occupantstatusDropDownList.Items.Insert(0, new ListItem("--Select--", "0"));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// To get the occupant status
        /// </summary>
        private void GetOccupantStatus()
        {
            PermanentStructureBLL BLLobj = new PermanentStructureBLL();

            ddlOccupantStatus.DataSource     = BLLobj.GetOccupantstatus();
            ddlOccupantStatus.DataTextField  = "OCCUPANTSTATUS";
            ddlOccupantStatus.DataValueField = "OCCUPANTSTATUSID";
            ddlOccupantStatus.DataBind();

            //OccupationBLL BLLobj = new OccupationBLL();

            //ddlOccupantStatus.DataSource = BLLobj.GetOccupation();
            //ddlOccupantStatus.DataTextField = "OccupationName";
            //ddlOccupantStatus.DataValueField = "OccupationID";
            //ddlOccupantStatus.DataBind();
        }