/// <summary>
        /// This method will provide to edit the some of text fields.
        /// </summary>

        protected void btnEdit_Click(object sender, EventArgs e)
        {
            //if (!IsPostBack)
            {
                btnEdit.Visible   = false;
                btnUpdate.Visible = true;
                btnReset.Visible  = true;
                ILogon user       = (ILogon)Session["ObjUserInfo"];
                int    employeeID = user.EmployeeId;
                updateTable.Visible = true;
                viewTable.Visible   = false;
                //btnEdit.Visible = false;
                IAdminBLL objBLL      = AdminBLLFactory.CreateAdminBLLObject();
                IEmployee objEmployee = objBLL.GetEmployee(employeeID);
                lblFirstNamedynamic2.Text = objEmployee.FirstName;
                lblLastNamedynamic2.Text  = objEmployee.LastName;
                txtAddress2.Text          = objEmployee.Address;
                lblRoleTagDynamic2.Text   = objEmployee.RoleName;
                //  ddlState2.SelectedItem.Text = objEmployee.State;
                // ddlCity2.SelectedItem.Text = objEmployee.City;
                txtContact2.Text           = Convert.ToString(objEmployee.MobileNumber);
                lblDOBDynamic2.Text        = Convert.ToString(objEmployee.Dob);
                lblDOJDynamic2.Text        = Convert.ToString(objEmployee.Doj);
                lblEmployeeIdDynamic2.Text = Convert.ToString(objEmployee.EmployeeId);
            }
        }
        /// <summary>
        /// This is the page load for view employee profile.
        /// </summary>

        protected void Page_Load(object sender, EventArgs e)
        {
            ILogon user       = (ILogon)Session["ObjUserInfo"];
            int    employeeID = user.EmployeeId;

            if (!IsPostBack)
            {
                btnReset.Visible  = false;
                btnUpdate.Visible = false;
                //viewTable.Visible = false;
                updateTable.Visible = false;
                IAdminBLL objBLL      = AdminBLLFactory.CreateAdminBLLObject();
                IEmployee objEmployee = objBLL.GetEmployee(employeeID);
                lblFirstNamedynamic.Text  = objEmployee.FirstName;
                lblLastNamedynamic.Text   = objEmployee.LastName;
                lblAddressDynamic.Text    = objEmployee.Address;
                lblRoleTagDynamic.Text    = objEmployee.RoleName;
                lblStateDynamic.Text      = objEmployee.State;
                lblCityDynamic.Text       = objEmployee.City;
                lblContactDynamic.Text    = Convert.ToString(objEmployee.MobileNumber);
                lblDOBDynamic.Text        = Convert.ToString(objEmployee.Dob);
                lblDOJDynamic.Text        = Convert.ToString(objEmployee.Doj);
                lblEmployeeIdDynamic.Text = Convert.ToString(objEmployee.EmployeeId);
            }
        }