Call ASP.NET Page Methods using your own AJAX(dailydotnettips.com)

submitted by rcashrcash(4149) 9 months, 1 day ago

ASP.NET has grown tremendously over the years. Especially after Microsoft has introduced JQuery as a primary javascript development tool. However with AJAX, many developers do seek places to actually call a page using normal AJAX based applications. In this post I will show you how to invoke your own page methods using AJAX.

1 comment |category: |Views: 34

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, 1 day ago 0

ASP.NET MVC works well with jQuery and AJAX. With jQuery, you can call a controller action directly via GET or POST. The controller has a method Json() that will convert the object into a JSON object. JSON objects have properties which can be directly used in Javascript. This makes the Javascript code more object oriented. MVC is a very good platform for developing AJAX applications that rely on JSON.

Reply

information Login or create an account to comment on this story