SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 226 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"


DropDownExtender Control
The DropDownExtender control is another extender that can be used with a number of
ASP.NET controls for enhanced visual rendering of a drop-down control. Despite its
name, the DropDownExtender is not only limited to ASP.NET DropDownList controls and can,
in fact, be used with many other controls such as a TextBox control or even a Label control.
And much like the previous control, it has an additional property called
DropDownControlID, which is the ID of the control containing the actual content for Drop-
Down. Take a look at the sample that comes with the ASP.NET AJAX Control Toolkit and
focus your attention on the DropDown.aspx page as shown in Figure 7-19.
CHAPTER 7 ?–  USING THE ASP.NET AJAX CONTROL TOOLKIT (PART 1) 161
Figure 7-19. Example of the DropDown extender control
Viewing the code reveals a few LinkButton controls as options for the drop-down:

Style="display :none; visibility: hidden;">
CssClass="ContextMenuItem" OnClick="OnSelect" />
CssClass="ContextMenuItem" OnClick="OnSelect" />


CHAPTER 7 ?–  USING THE ASP.


Pages:
214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238