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

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"


PopupDragHandleControlID ID of the control used as the drag handle for the modal pop-up.
TargetControlID ID of the control that instigates the modal pop-up.
X The initial X coordinate of the modal pop-up.
Y The initial Y coordinate of the modal pop-up.
For a great example of the ModalPopup extender, turn to the sample web site provided
with the ASP.NET AJAX Toolkit and view the file ModalPopup.aspx. When you click the
Click here to change the paragraph style link, a modal pop-up menu appears offering a
range of paragraph styling options to the user via several radio buttons. After the selection,
the user can then click on the OK or Cancel button to gain back control of the page.
You can see this in Figure 8-7.
CHAPTER 8 ?–  USING THE ASP.NET AJAX CONTROL TOOLKIT (PART 2) 178
Figure 8-7. ModalPopup extender used to block access to the main page
Take a look at the following code segment, which was used to define the ModalPopup
in this page:
TargetControlID="LinkButton1"
PopupControlID="Panel1"
BackgroundCssClass="modalBackground"
OkControlID="OkButton"
OnOkScript="onOk()"
CancelControlID="CancelButton"
DropShadow="true"
PopupDragHandleControlID="Panel3" />
CHAPTER 8 ?–  USING THE ASP.


Pages:
236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260