Guest User

Untitled

a guest
Jan 22nd, 2018
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. return RedirectToAction("Index","Auth");
  2.  
  3. return Json(new{data=true})
  4.  
  5. $.ajax({
  6. type: 'POST',
  7. url: 'your url',
  8. data:your data
  9. success: function (data) {
  10. if (data) {
  11. window.location.href="url";
  12. }
  13. else {
  14. window.location.href="url";
  15. }
  16. },
  17. error: function (xhr, textStatus, errorThrown) {
  18. alert(errorThrown);
  19. }
  20. });
  21. return false;
  22.  
  23. window.location = '@Url.Action("Index","Auth")';
Add Comment
Please, Sign In to add comment