protected void btnEliminar_Click(object sender, EventArgs e)
    {
        UsuarioBE oUsuario  = new UsuarioBE();
        PerfilBL  oPerfilBL = new PerfilBL();

        oPerfilBL.ErrorEvent += new PerfilBL.ErrorDelegate((Master as Seguridad).Transaction_ErrorEvent);

        try
        {
            oUsuario.NID_PERFIL        = Int32.Parse(this.txhPerfilUsuarioID.Value);
            oUsuario.CO_USUARIO_CAMBIO = Profile.Usuario.CUSR_ID;
            oUsuario.NO_ESTACION_RED   = Profile.Estacion;
            oUsuario.NO_USUARIO_RED    = Profile.UsuarioRed;

            (Master as Seguridad).onError = false;
            if (oPerfilBL.EliminarUsuariosRelacionados(oUsuario) > 0 && !(Master as Seguridad).onError)
            {
                InicializaPerfilUsuario();
                JavaScriptHelper.Alert(this, Message.keyElimino, String.Empty);
            }
            else
            {
                JavaScriptHelper.Alert(this, Message.keyNoElimino, String.Empty);
            }
        }
        catch (Exception ex)
        {
            JavaScriptHelper.Alert(this, Message.keyNoElimino, String.Empty);
            (Master as Seguridad).Web_ErrorEvent(this, ex);
        }
        this.txhPerfilUsuarioID.Value = String.Empty;
    }