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
But how to call a controller method from ajax Query for example if my URL is url: "/Home/CalledMethod"
Home => Controller name
Index => View name
CalledMethod => methos name in controller
what is the syntax in @url.Action @Url.Action("Index", "Home") here where to include my method "CalledMethod"?
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.