The CascadingDropDown Extender
The CascadingDropDown extender can be attached to a DropDownList control to automatically populate it based on the current selection of one or more parent DropDownList controls. The CascadingDropDown extender is designed to fit in a relatively common scenario in which the contents of one drop-down list depends on the selection of another list. In this way, you don't need to transfer to the client the entire data set from which a child list can select a subset of items to display in accordance...
Info Rhq
Microsoft Atlas is a framework that brings AJAX-style functionality to the ASP.NET 2.0 platform. Unlike other similar frameworks, Atlas is designed to be part of ASP.NET and therefore seamlessly integrate with the existing platform and application model. Atlas will be fully integrated with the next release of Microsoft Visual Studio and, along with LINQ and Model-ViewController support, form the pillars of the future ASP.NET platform to be released in 2007. If you aren't familiar with LINQ and...
The DynamicPopulate Extender
The DynamicPopulate extender is a sort of binder component that replaces the markup of a given control with the markup returned by a Web service method call. The extender can be seen as a shrinkwrapped and simplified version of the UpdatePanel control that we discussed in Chapter 3. It captures a client event and fires a remote call. The returned string is inserted in the page DOM as the child of the target element. Here's an example lt input type button id Button1 runat server value Refresh lt...
The HoverMenu Extender
The HoverMenu extender is similar to the PopupControl extender and can be associated with any ASP.NET control. Both extenders display a popup panel to display additional content, but they do it for different events. The HoverMenu, in particular, pops up its panel when the user moves the mouse cursor over the target control. The panel can be displayed at a position specified by the developer. It can be at the left, right, top, or bottom of the target control. In addition, the control can be...
The PagingBulletedList Extender
Imagine a page that has to present a long list of items to users say, a list of customers. A common solution entails using a pageable grid control. ASP.NET grids do a postback for each new page, but by wrapping the grid in an UpdatePanel control you can brilliantly address the issue. What if you give a grid a control that's far too heavy when you need to list items using a bullet-list control The ASP.NET BulletedList control lists the contents of a data source using a variety of bullet-point...
The ConfirmButton Extender
Many times when a user clicks a button, a safe approach is to ask the user for a confirmation for the operation she's going to start. A common solution for implementing this behavior entails that the ASP.NET page attach some script code to the button to pop up a JavaScript message box with a confirm message. The ConfirmButton extender greatly simplifies this common task and makes it declarative lt asp Button runat server ID Button1 Text Click me gt lt act ConfirmButtonExtender ID cbe runat...
Target Properties
Control extenders are characterized by a set of properties to configure the embedded behavior. A control extender class inherits from a generic class named ExtenderControlBase public class TextBoxWatermarkExtender TextBox gt The extender class needs two key pieces of information from the outside world the collection of properties to use target properties , and the control class to which it will apply. In the sample code that follows, TextBoxWatermarkProperties is a system-provided class that...
The ReorderList Control
Data-bound lists of data are commonly displayed to Web users and, most of the time, are readonly, immutable lists. There might be situations, though, in which the end user will want to reorder a displayed list of items. A good example is a page on which the user can select multiple cities in the world to be informed about the current weather. The cities appear in a given order in the page, but the user might want to change the order at some point. As a developer, you could add a Move Up button...
Monitoring HTTP Traffic
In action, an Atlas application sends a bunch of classic postbacks and out-of-band calls. For testing purposes, you might need to be able to take a look at the contents of HTTP request and response packets. This is rarely necessary in classic ASP.NET, and even when it is necessary it could be easily done with a line of code void Page_Load object sender, EventArgs e On the other hand, Atlas makes asynchronous calls much more frequently, and it does so by using a custom syntax for the body of the...
The NumericUpDown Extender
Added to a TextBox control, the NumericUpDown extender adds a couple of arrow button next to the control to let users increment and decrement the displayed value. It is interesting to note that the ability to increment and decrement applies to numeric input as well as any user-defined enumeration. lt strong gt How old are you lt strong gt lt asp TextBox ID TextBox1 runat server Width 100px gt lt act NumericUpDownExtender ID UpDown1 runat server gt lt act NumericUpDownProperties Width 100...
The CollapsiblePanel Extender
The extender builds up a collapsible section in your pages by combining two panels one acting as the content panel, and one being the expand collapse controller. In its simplest form, the CollapsiblePanel extender looks like the following code sample lt act Co11apsib1ePane1Extender ID Co11Pane1 runat server gt lt act Co1 lapsiblePanelProperties ExpandContro1ID HeaderPane1 As usual, the TargetControlID property sets the target panel to expand or collapse. ExpandCon-trolID and CollapseControlID...




