Hi,
$.ajax({ type: "Post", url: "/Home/CalledMethod", data: data, success: function (result) { alert("Success!.."); } });
url: "/Home/CalledMethod", instead of this how can I use @url.action in jQuery ajax call inside javascript file
Thanks
R
Replace Index with CalledMethod.
@Url.Action("CalledMethod", "Home")
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.