Ajax and ASP. NET
The previous article briefly introduced Ajax-related knowledge. This article describes the application and relationship of Ajax in ASP. NET.
ASP. net Ajax is a complete development framework, which works with ASP. net seamless integration, using ASP. net AJAX can easily add Ajax effects. Generally, to implement complex functions, you only need to drag several controls on the page, without having to understand the working principle in depth. In addition, Asp. net Ajax control toolkit contains a large number of independent Ajax controls and. net original server control Ajax Function Extension, implementation is also very simple. ASP. NET
Ajax programming is divided into client-side programming and server-side programming. server-side programming is simpler than client-side programming, but there is a big gap between server-side programming and client-side programming in terms of execution efficiency and controllability.
Component Diagram
The component diagram shows that the entire ASP. net Ajax is based on ASP.. net, which is further divided into Microsoft Ajax library and ASP. net Ajax extensions. Based on these two terms, ASP is developed. net Ajax Control Toolkit.
Microsoft Ajax Library
Microsoft Ajax library is a client framework in ASP. NET and is designed for client programming.
Basic Scaling
Microsoft Ajax Library Extends JavaScript and adds methods and attributes that are not available in Javascript. It also provides more content, such as the stringbuilder class and component model; it also encapsulates objects in JavaScript to implement the original functions in a simpler and more intuitive manner.
Browser compatibility layer
Microsoft Ajax library helps shield the differences between browsers so that programmers no longer need to program different browsers.
Object-oriented
Javascript is a prototype-based scripting language that does not really implement object-oriented classes, inheritance, and other features. Microsoft Ajax library encapsulates JavaScript, it provides a more intuitive object-oriented programming method to make programs easier to maintain.
ASP. NET Ajax extensions
For server-side programming, it mainly includes common scriptmanager, updatepanel, extender and other controls, scriptmanager for other ASP. net Ajax controls, through simple programming of these controls, you can achieve Ajax effect.
Ajax Control Toolkit
It is based on the extender of the server and the behavior of the client. By extending existing controls and adding JavaScript Functions to them, it is developed by the community and can easily add Ajax effects using toolkit.
Wenwei
This article is an introduction to ASP. Net Ajax and will detail the content mentioned in this article in future articles.