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

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"


CHAPTER 7 ?–  USING THE ASP.NET AJAX CONTROL TOOLKIT (PART 1) 157
The ConfirmButtonExtender control is ideal in situations where the user is about to
submit an order or other important unit of data. It works equally well with ASP.NET
Button and LinkButton controls. To see this in a page, create an ASP.NET button control on
a page followed by the ConfirmButtonExtender control. After that, set the TargetControlID
property of your ConfirmButtonExtender control to that of the regular button, and set the
text for the ConfirmText property. Lastly, create a Label control, and in the event handler
for the button, set the label??™s text to a message indicating the successful receipt of the
Click event. Your ASPX markup should look similar to the following code snippet:
OnClick="Button1_Click" />
TargetControlID="Button1" ConfirmText="Are you sure ?"
runat="server">



When you click this submit button, you will be presented with a dialog box as shown
in Figure 7-16.


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