Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
You can enhance the server-based features of ASP.NET by including client-script functionality in ASP.NET Web pages. You can use client script to provide a richer, more responsive user interface to users. You can also use client script to make asynchronous calls to the Web server while a page is running in the browser.
ASP.NET provides two approaches for including client capabilities. The first approach is to use the AJAX features of ASP.NET. ASP.NET AJAX includes a library of client script functions that bring many of the advantages of object-oriented programming and of the ASP.NET model to client scripting. ASP.NET AJAX also provides server-based support that includes Web server controls that can automatically render client script that is required for 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 validator controls) to add client functionality.
AJAX Features in ASP.NET
The documentation for AJAX features in ASP.NET includes overviews, tutorials, and API reference topics. We suggest you start with the topics under "Getting started" and then following the progression of topics down the table.
Client Scripting in ASP.NET
The following topics provide information about how to create client script yourself that enhances the functionality of Web pages and server controls.
| Getting started with client scripting | - Client Script in ASP.NET Web Pages - Creating Custom Client Script by Using the Microsoft AJAX Library |
| Client scripting with server controls | - How to: Add Client Script Events to ASP.NET Web Server Controls - ASP.NET Web Server Controls that Use Client Script |
| Dynamic client scripting and script references | - How to: Add Client Script Dynamically to ASP.NET Web Pages - Dynamically Assigning Script References - Walkthrough: Embedding a JavaScript File as a Resource in an Assembly |
| Calling back to client code without server postback | - Implementing Client Callbacks Programmatically Without Postbacks in ASP.NET Web Pages - How to: Implement Callbacks in ASP.NET Web Pages - Client-Callback Implementation (C#) Example - Client-Callback Implementation (Visual Basic) Example - Client Callback with Validation Implementation Example |
See Also
Concepts
Adding AJAX Functionality to ASP.NET Controls
Other Resources
Learning ASP.NET 3.5, Second Edition: Build Web Applications with ASP.NET 3.5, AJAX, LINQ, and More