protected void btnAceptarCambioContrasenha_Click(object sender, EventArgs e)
    {
        String      indLogeo, msgLogeo;
        SeguridadBL oSeguridadBL = new SeguridadBL();
        UsuarioBL   oUsuarioBL   = new UsuarioBL();
        UsuarioBE   oUsuario     = new UsuarioBE();

        oUsuarioBL.ErrorEvent += new UsuarioBL.ErrorDelegate(Transaction_ErrorEvent);

        int retorno;

        try
        {
            /*Validamos que los datos ingresados sena correctos*/
            oSeguridadBL.ErrorEvent += new SeguridadBL.ErrorDelegate(Transaction_ErrorEvent);
            onError  = false;
            oUsuario = oSeguridadBL.ValidaLogeoUsuario(this.txtUsuario_CambioPwd.Text, this.txtPwd_CambioPwd.Text,
                                                       ConfigurationManager.AppSettings["AplicacionID"], out indLogeo, out msgLogeo);

            if (onError)
            {
                String executeFuncion = "$('#modal_CambiarPwd').modal('show');";
                ScriptManager.RegisterStartupScript(this, this.GetType(), "__MODAL_OPEN__", executeFuncion, true);
                return;
            }

            if (indLogeo.Equals("0") || indLogeo.Equals("-6") || indLogeo.Equals("-7"))// I/F @003
            {
                System.Net.IPHostEntry host;
                host = System.Net.Dns.GetHostEntry(Request.ServerVariables["REMOTE_HOST"]);
                String clientComputerName = host.HostName;

                String   usuarioRed = Request.ServerVariables["LOGON_USER"];
                String[] arrusuarioRed;
                if (usuarioRed != null)
                {
                    arrusuarioRed = usuarioRed.Split('\\');
                    if (arrusuarioRed.Length > 0)
                    {
                        usuarioRed = arrusuarioRed[arrusuarioRed.Length - 1];
                    }
                }
                else
                {
                    usuarioRed = String.Empty;
                }

                onError = false;

                retorno = oUsuarioBL.ModificarPassWord(this.txtUsuario_CambioPwd.Text, this.txtNewPwd_CambioPwd.Text, this.txtUsuario_CambioPwd.Text, usuarioRed, clientComputerName, "0", this.txtNewPwd_CambioPwd.Text);
                if (!onError && retorno > 0)
                {
                    JavaScriptHelper.FuncionAjax(this, "fc_AlertSuccess", Message.keyGrabar, String.Empty);
                }
                else if (!onError && retorno == -5)
                {
                    JavaScriptHelper.FuncionAjax(this, "fc_AlertError", Message.keyUsuarioNoReg, String.Empty);
                }
                else if (!onError && retorno == -6)
                {
                    JavaScriptHelper.FuncionAjax(this, "fc_AlertError", Message.keyUsuarioRepetido, String.Empty);
                }
                else
                {
                    JavaScriptHelper.FuncionAjax(this, "fc_AlertError", Message.keyErrorGrabar, String.Empty);
                }
            }
            else
            {
                JavaScriptHelper.FuncionAjax(this, "fc_Alert", String.Format("'{0}'", msgLogeo), String.Empty);
                String executeFuncion = "$('#modal_CambiarPwd').modal('show');";
                ScriptManager.RegisterStartupScript(this, this.GetType(), "__MODAL_OPEN__", executeFuncion, true);
            }
        }
        catch (Exception ex)
        {
            Web_ErrorEvent(this, ex);
        }
    }