$.ajax({ type: "POST", contentType: "application/json; charset=utf-8", //url: "hotels.aspx/BindDatatable", url: '@Url.Action("hotels.aspx","BindDatatable")', /*data: "{}",*/ data: "{'ToValue':'"+totval+"',"+"'checkin':'"+chkin+"',checkout:'"+ckhout+"'}", /*data:{ToValue:totval,checkin:chkin,checkout:ckhout},*/ dataType: "json", success: function(data) { var theHtml = data.d; // alert(data.d); window.location.href = data.d; }, error: function(xhr, textStatus, errorThrown) { //alert("Error is " + result.value); alert("FAIL: " + xhr + " " + textStatus + " " + errorThrown); } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)