java

Using ASP.NET AJAX page methods to make things easier

Filed in archive AJAX on November 27, 2007

You all must be aware of the fact that using web services one can simply exchange data between ASP.NET AJAX pages and a server using lightweight JSON messages but in case you are looking forward to create separate ASMX Web service file and add ScriptService attribute to the service class this could simply mean asking too much in cases where a single page eats all the service methods therefore a better option would be to add functionality offered by web services directly into an ASP.NET code-beside page. Here one can opt for AJAX page methods rather than web services.

30335623.jpg


So what are page methods? These are static or shared methods which can be added onto ASP.NET page's code-beside file and communicate directly with an ASP.NET AJAX-enabled page and pass JSON request and response messages back and forth in a similar fashion as WebMethods. My friend Dan has tried to explain it through a very good example. Using page methods one can bring down the number of files which need to be used when an application moves to production and provides a simple technique for adding web service style functionality directly into an ASP.NET code-beside page.

Permalink: Using ASP.NET AJAX page methods to make things easier

Tags: AJAX  page  methods  ASP.NET  AJAX  page  ajax  ajax+page 

Vote for Using ASP.NET AJAX page methods to make things easier:

  • Currently 8.50/10
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
Rating: 8.50 out of 2 vote(s) cast.
 
Share It
RSSrss
Google google
Yahoo! yahoo
Addthis Subscribe using any feed reader!
Bloglines Bloglines
TwitterFollow us on Twitter!
Most Popular   AJAX   Application Development   Awards   Basics   Best of   Business   conference   Did you know   E-Commerce   Information About   Management   Misc   Mobile Devices   mobile phones   Monthly Contest   Personal   Programming   Quick introduction   Security   Service Oriented Architectures