In ASP.NET , how can you make AJAX calls consistently to the same url? -
so have ajax phone call this:
$.ajax({ type: "get", url: "home/getfullview", success: function (data) { $("#sched").html(data); }, fail: function () { } });
where "home" controller , "getfullview" action. phone call works. crashes application because tries url: "home/home/getfullview". it's adding "home" 1 time many times.
how can consistently have check same url without doubling "home" controller name?
if utilize url: "getfullview" crashes because looks "home" controller.
introduce leading /
url: "/home/getfullview",
asp.net ajax
No comments:
Post a Comment