Figure 7-16. Dialog box of the ConfirmButtonExtender control
If you cancel the dialog box, the initial Click event of the Submit button will be discarded.
However, if you click OK, the Click event is accepted, and the click-event method
is invoked. The click-event method displays a confirmation message in the Label control
as shown in Figure 7-17.
CHAPTER 7 ?– USING THE ASP.NET AJAX CONTROL TOOLKIT (PART 1) 158
Figure 7-17. Submit button accepted
DragPanelExtender Control
The DragPanelExtender control is without a doubt one of the coolest controls in the
ASP.NET AJAX Control Toolkit; it allows the user to drag around a panel on a web page.
As you can imagine, manually implementing this type of functionality with client-side
JavaScript is a grand endeavor.
In addition to that, this control has only two properties and is extremely easy to use.
Other than the TargetControlID property, which you know all too well by now, the
DragPanelExtender control has another property called DragHandleID. This property specifies
the subpanel with which the user can drag the overall panel.
Pages:
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236