Calling ASP.NET MVC Action Methods from JavaScript(haacked.com)

submitted by rcashrcash(4149) 9 months, 3 days ago

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.

1 comment |category: |Views: 45

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by vijaystvijayst(1311) 9 months, 3 days ago 0

There are so many options available in MVC world to do AJAX. Most of these alternatives are open-source and can be accessed easily with NuGet. MvcHaack.Ajax looks promising from the outset.

Reply

information Login or create an account to comment on this story