protected void btnSave_Click(object sender, EventArgs e)
        {
            try
            {

                UserBLL aUserBll = new UserBLL();

                if (txtbxFirstName.Text == "")
                {
                    msgbox.Visible = true; msgTitleLabel.Text = "Validation!!!"; msgDetailLabel.Text = "First Name field is required.";
                    msgbox.Attributes.Add("Class", "alert alert-warning");
                    txtbxFirstName.Focus();
                }
                else if (txtbxLastName.Text == "")
                {
                    msgbox.Visible = true; msgTitleLabel.Text = "Validation!!!"; msgDetailLabel.Text = "Last Name field is required.";
                    msgbox.Attributes.Add("Class", "alert alert-warning");
                    txtbxLastName.Focus();
                }
                else if (txtbxAddress.Text == "")
                {
                    msgbox.Visible = true; msgTitleLabel.Text = "Validation!!!"; msgDetailLabel.Text = "Address field is required.";
                    msgbox.Attributes.Add("Class", "alert alert-warning");
                    txtbxAddress.Focus();
                }
                else if (txtbxHouse.Text == "")
                {
                    msgbox.Visible = true; msgTitleLabel.Text = "Validation!!!"; msgDetailLabel.Text = "House No field is required.";
                    msgbox.Attributes.Add("Class", "alert alert-warning");
                    txtbxHouse.Focus();
                }
                else if (txtbxStreet.Text == "")
                {
                    msgbox.Visible = true; msgTitleLabel.Text = "Validation!!!"; msgDetailLabel.Text = "Street field is required.";
                    msgbox.Attributes.Add("Class", "alert alert-warning");
                    txtbxStreet.Focus();
                }
                else if (txtbxCell.Text == "")
                {
                    msgbox.Visible = true;
                    msgTitleLabel.Text = "Validation!!!";
                    msgDetailLabel.Text = "Cell Number field is required.";
                    msgbox.Attributes.Add("Class", "alert alert-warning");
                    txtbxCell.Focus();
                }

                else
                {
                    UserBLL aUser = new UserBLL();
                    LoginBll login = new LoginBll();
                    aUser.UserId = txtbxUserName.Text;
                    aUser.FirstName = txtbxFirstName.Text.Trim();
                    aUser.LastName = txtbxLastName.Text.Trim();
                    aUser.PassportNo = txtbxPassportNo.Text.Trim();
                    aUser.Address = txtbxAddress.Text.Trim();
                    aUser.Country = ddlCountry.SelectedValue;
                    aUser.House = txtbxHouse.Text.Trim();
                    aUser.Street = txtbxStreet.Text.Trim();
                    aUser.Area = txtbxArea.Text.Trim();
                    aUser.MobileNo = txtbxCell.Text.Trim();
                    aUser.Email = txtbxEmail.Text.Trim();
                    aUser.EmrName = txtcontactPerson.Text.Trim();
                    aUser.EmrAddress = txtbxContactAddress.Text.Trim();
                    aUser.EmrRelation = ddlContactRelation.SelectedValue;
                    aUser.EmrMobile = txtbxContactMobile.Text.Trim();
                    aUser.EmeEmail = txtContactEmail.Text.Trim();
                    aUser.EmeCountry = ddlContactCountry.SelectedValue;
                    aUser.IsActive = "No";
                    aUser.Isvarified = "No";
                    aUser.Createdby = LumexSessionManager.Get("ActiveUserId").ToString();
                    aUser.CreatedFrom = LumexLibraryManager.GetTerminal();
                    aUser.UserGroupId = "UG003";
                    aUser.PerPhoto = "";

                    bool status = aUserBll.UpdateUserInfo(aUser);
                    if (status)
                    {
                        string message = " <span class='actionTopic'>" + " Data Update Successfully as Id: " +
                                         aUser.UserId + "</span>.";
                        MyAlertBox(
                            "var callbackOk = function () { window.location = \"/a/stake/create.aspx\"; }; SuccessAlert(\"" +
                            "Process Succeed" + "\", \"" + message + "\", \"\");");
                    }
                    else
                    {
                        string message = " <span class='actionTopic'>" + " Data Update Successfully as Id: " +
                                         aUser.UserId + "</span>.";
                        MyAlertBox(
                            "var callbackOk = function () { window.location = \"/a/stake/create.aspx\"; }; SuccessAlert(\"" +
                            "Process Succeed" + "\", \"" + message + "\", \"\");");
                    }
                }

            }
            catch (Exception)
            {

                //  throw;
            }
        }