Introduction
Microsoft ASP.NET 2.0 AJAX Extensions enables you to expand the capabilities of an ASP.NET Web application in order to create a rich user experience. You can use ECMAScript (JavaScript), DHTML, and AJAX capabilities of the Web browser to include visual effects, client processing such as validation, and so on.
This tutorial shows you how to create an ASP.NET Web server control that uses features of Microsoft ASP.NET 2.0 AJAX Extensions for expanded functionality in the browser. You can add functionality to client Document Object Model (DOM) elements by using a client control. The client control can be associated with a server control by implementing the IScriptControl interface in the server control.
In this tutorial you will learn how to do the following:
-
Create a Web server control that encapsulates client behavior and that includes properties that users can set to control the behavior.
-
Create a client control that is associated with the Web server control.
-
Handle events from the browser DOM by in the client control.
note You can also add rich client capabilities to Web server controls by creating an extender control, which encapsulates client capabilities in a behavior and that can then be attached to a Web server control. Because an extender control is not part of its associated control, you can create a single extender control that can be associated with several types of Web server controls. For an example, see Adding Client Behaviors to Web Server Controls Using ASP.NET AJAX Extensions.