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 222 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"

In this
case, the content is being generated by a method called GetContentFillerText. So notice
that while the TargetContronID property of the CollapsiblePanelExtender is set to Panel1,
the ExpandControlID and CollapseControlID properties are both set to Panel2, which is
essentially the header panel. The small icon on the right portion of the header changes
depending on the state of the panel as specified by the ExpandedImage and CollapsedImage
properties. Figure 7-15 shows this panel in expanded mode.
CHAPTER 7 ?–  USING THE ASP.NET AJAX CONTROL TOOLKIT (PART 1) 156
Figure 7-15. Example of CollapsiblePanel (in expanded mode)
ConfirmButtonExtender Control
The ConfirmButtonExtender control, as the name suggests, captures the Click event of a
button and displays a confirmation dialog box. If the user clicks OK after that, the button
will function as implemented; otherwise, the Click event will simply be ignored. This
control is so simple that it only has two properties: TargetControlID and ConfirmText. As
you probably have guessed already, TargetControlID contains the ID of the target button,
and ConfirmText holds the text message that will be displayed in the dialog box requiring
user confirmation.


Pages:
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234