Post Json object and redirect URL
Hello,
I would like to redirect my request from a page to another one with a json object.
The only way i have found to do this is :
$.ajax({
type: "POST",
contentType: "application/json",
url: "/SaveMyJsonInSession",
data: $.toJSON(model),
success: function (result) {
// redirect to validation
window.location.href ="/UseMyJsonInSession";
}
});
Is there a way to do this without using .Ajax ? With this method i have to save my json object in my session to reuse it after and i don't like that !
Thank you for your help