0
kicks
Calling ASP.NET MVC Action Methods from JavaScript
When writing Ajax heavy applications using ASP.NET, MVC is managing the URLs. These URLs aren’t available from code in a static JavaScript file. Two approaches discussed in this article to solve this are, generate the URLs in the view and pass them into the JavaScript API or embed the URLs in the HTML in a logical and semantic manner and the script can read them from the DOM.