protected void Page_Load(object sender, EventArgs e)
 {
     Page.Header.DataBind();
     //uc_header.FillMenu(ICSBLL.Base_BLL_Constants.Modules.Admin);
     objuser = new Base_BLL_User();
     if (!IsPostBack)
     {
         try
         {
             FillUser_Master();
         }
         catch (Exception ex)
         {
             throw ex;
         }
     }
 }
    protected void btnAdd_Click(object sender, EventArgs e)
    {
        objuser = new Base_BLL_User();
        try
        {
            objuser.FirstName  = txtFirstName.Text;
            objuser.MiddleName = txtMiddleName.Text;
            objuser.LastName   = txtLastName.Text;
            objuser.UserRegID  = txtUserId.Text;
            objuser.Password   = Base_BLL_Cryptography.Encrypt(txtPassword.Text, true);
            if (chkIsactive.Checked)
            {
                objuser.isActive = 1;
            }
            else
            {
                objuser.isActive = 0;
            }

            if (chkIsdeleted.Checked)
            {
                objuser.isDeleted = 1;
            }
            else
            {
                objuser.isDeleted = 0;
            }


            objuser.RegisterUser();
            FillUser_Master();

            uc_error.ErrorMessage = "User information added successfully........ !";
            uc_error.IsError      = false;
            ScriptManager.RegisterStartupScript(this, this.GetType(), "Close", "ClearValues();", true);
        }
        catch (Exception Ex)
        {
            uc_error.ErrorMessage = Ex.Message;
            uc_error.IsError      = true;
        }
    }