+ 2

How to go to another page when data has been sended in ajax.

I want to go to another page when data has been sended in ajax i used RedirectToAction in mvc but it cant be used when i ised ajax for sending data to server any suggestions? ?

21st Oct 2017, 10:36 AM
prg_Mohamad
prg_Mohamad - avatar
2 Respostas
+ 1
if you use Ajax with JQuery lib it has Ajax complete event that run after Ajax response got, so you can use window.location.href="/page/example" to redirect page
23rd Oct 2017, 7:27 PM
Hamid Reza Gholami Boroujeni
Hamid Reza Gholami Boroujeni - avatar
0
tnx
23rd Oct 2017, 7:29 PM
prg_Mohamad
prg_Mohamad - avatar