Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

157
Vistas
how Redirection does not work in javascript

when I click on the submit button, the message is displayed but redirected to the edituser page while I want to be redirected to index

public void OnPost(List<long> SelectedRoles)
    {
        if (!ModelState.IsValid||SelectedRoles.Count==0)
        {   
             Roles= _RoleApplication.GetRoleList();              
         
        }                     
          _UserRoleApplication.Edit(EditProfile.Id,SelectedRoles);
          _AccountApplication.EditUserByAdmin(EditProfile);
    }
function edit(id) {
    Swal.fire({
    title: 'edit',
    showDenyButton: true,
    confirmButtonText: 'yes',
    denyButtonText: `no`,
    }).then((result) => {
    if (result.isConfirmed) {
        Swal.fire('save!', '', 'success').then((r) => {
            if (r.isConfirmed)
            {
                window.location.replace('https://localhost:5001/Admin/index);
            }
        })                           
    } else if (result.isDenied) {
        Swal.fire('error', '', 'info')
    }
    })
};

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda