ASP.NET AJAX is a free framework for building a new generation of richer, more interactive, highly personalized cross-browser web applications. This new web development technology from Microsoft integrates cross-browser client script libraries with the ASP.NET 2.0 server-based development framework. In addition, ASP.NET AJAX offers you the same type of development platform for client-based web pages that ASP.NET offers for server-based pages. And because ASP.NET AJAX is an extension of ASP.NET, it is fully integrated with server-based services. ASP.NET AJAX makes it possible to easily take advantage of AJAX techniques on the web and enables you to create ASP.NET pages with a rich, responsive UI and server communication. However, AJAX isn't just for ASP.NET. You can take advantage of the rich client framework to easily build client-centric web applications that integrate with any backend data provider and run on most modern browsers.
The CollapsiblePanel is a very flexible extender that allows you to easily add collapsible
sections to your web page. This extender targets any ASP.NET Panel control. The page developer
specifies which control(s) on the page should be the open/close controller for the panel, or the
panel can be set to automatically expand and/or collapse when the mouse cursor moves in or out
of it, respectively.
The panel is also post-back aware. On a client postback, it automatically remembers and restores
its client state. This demonstrates the ability of these extenders to have some communication
between the client and the server code. Click
here to cause a postback.
The page developer can specify whether the panel should scroll when it does not expand to the full
size of its contents, and can also specify whether the panel expands in the height or width dimensions.
Note: CollapsiblePanel assumes that the standard CSS box model is being used. Early versions of
didn't support that model completely,
so please use the !DOCTYPE declaration (as found at the top
of this page and enabled by default for new ASP.NET pages) to specify that the page should be rendered
in IE's standards-compliant mode.
The control above is initialized with this code. The italic properties are optional:
<ajaxToolkit:CollapsiblePanelExtender ID="cpe" runat="Server"