Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

155
Views
cómo la redirección no funciona en javascript

cuando hago clic en el botón de enviar, el mensaje se muestra pero se redirige a la página de usuario de edición mientras quiero ser redirigido al índice

 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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!