共用方式為


ASP.NET Client Script

ASP.NET provides two approaches for including client capabilities. The first approach is to use the Ajax features of ASP.NET. Microsoft Ajax includes library script files that contain client script functions that bring many of the advantages of object-oriented programming and of the ASP.NET model to client scripting. Microsoft Ajax also provides server-based support that includes Web server controls that can automatically render client script that is required for Microsoft Ajax functionality.

The second approach is to create client script and integrate it yourself into ASP.NET Web pages. This approach is useful if you have only small pieces of client script or if you want to integrate existing client script into your application. This approach is used by many ASP.NET Web server controls (for example, the ASP.NET validation controls) to add client functionality.

Roadmap to Client Scripting

We suggest the following progression of documentation to help you learn about client scripting.

Scenario

Topics

Getting started with client scripting

Client scripting with server controls

Dynamic client scripting and script references

Calling back to client code without server postback

See Also

Concepts

Microsoft Ajax

Script Exploits Overview

Other Resources

ASP.NET Validation Controls