Getting started with Ajax (1)

Source: Internet
Author: User
Microsoft Ajax library namespace
Client namespace description
Extended internal classes of globaljavascript, such as array, Boolean, String, error, number, and Object
Sys root namespace, which is in the client and.. NET Framework. This namespace includes some basic classes, such as application and stringbuilder ., there are also some useful interfaces, such as idisposable and inotifypropertychange
SYS. NET is used to execute network-related classes, such as webqequest and xmlhttpexcutor. This namespace virtualizes Client/Server Communication.
SYS. serialization serializes objects between the client and server
SYS. webforms includes the ability of Asp.net Ajax and partial webpage delivery. For example, it includes the pagerequestmanager class.
SYS. UI contains features related to user interfaces, such as users, controls, and enumeration.
SYS. Service provides access to Asp.net server services, such as identity authentication and Configuration Services.
The javascript in the MS Ajax library is designed to imaging the way C # works. Client programming is like using C # Code Program on. NET Framework.
For example:


Working principle: the web project created using the Asp.net Ajax-enabled web site template ensures that all Asp.net Ajax references can be included in the web. adding scriptmanager in config makes sure that Asp.net Ajax downloads the JavaScript files in the required Microsoft Ajax library. These files will then define the object model in the Custom JavaScript code block.

Server namespace and its description
Using Sw = system. Web
Description of the server namespace
Sw. configuration provides parts related to Asp.net Ajax in Web. configProgramLevel-1 Access
Sw. Handlers optimized acquisition of script downloads
Sw. Script. serlialization provides scalable JSON serialization and deserialization Functions
Sw. Script. Services defines the class for calling Web Services
Sw. UI contains management functions and network communication code, as well as the required server controls and control design programs

Server controls contained in Asp.net Ajax
Control name control description
Scriptmanager is invisible during running, which is required for each web form that enables Asp.net Ajax. Command and management client scripts. Only one instance of this control is allowed on each page.
Scriptmanagerproxy is invisible during runtime. If the master page contains the scriptmanager control and the Content Page wants to use the Ajax function, you must use the control and scriptmanager script management on the Content Page.
Updatepanel any control in updatepanel can simply send back Ajax-style parts.
Updateprogress displays a status bar to give you feedback when running a long Ajax request.
Timer precisely processes client events by Time Interval

  • next article: VC automatically configures the data source
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.