2010年6月30日星期三

ASP.NET and JQuery

http://channel9.msdn.com/pdc2008/PC31/

1. What is ASP.NET AJAH and ASP.NET AJAX? What is good about ASP.NET AJAX?

ASP.NET AJAH refers to the approach that pages are created on the server and updated through AJAX requests for HTML. It can be achieved using update panel to build pure server side application while adding AJAX functionality to it. You do not need to write javascript in the page.

ASP.NET AJAX refers to the approach that pages are created on the client and updated through Ajax requests for JSON. It is pure AJAX application. You only pass critical data you need from server to client to update the page, and you allow the client to render the UI.

ASP.NET AJAX is more fast than ASP.NET AJAH, because of the following reasons:
- no postback at all, just ajax call
- only passs data, so less bandwidth
- less work on the web server, database server, many work can be done in client side

2. What is Microsoft AJAX Framework?

Microsoft AJAX Framework is ASP.NET AJAX + jQuery

- ASP.NET AJAX can call Web Service
- ASP.NET AJAX can build pure client side components and controls
- ASP.NET AJAX can use Client Templates to arrange your data in page
- ASP.NET AJAX provides AJAX Control Toolkit which is set of server control with AJAX functionality. Microsoft has also released a client only verson.

- jQuery has good selectors syntax, grab element out from DOM.
- jQuery has good animation framework.
- jQuery has a huge number of Plugins. http://plugins.jquery.com/
One Plugin example: tablesorter can be downloaded from http://tablesorter.com/

3. How to add jQuery reference in ASP.NET page?

没有评论:

发表评论