Welcome to MSDN Blogs Sign in | Join | Help

News

  • These postings are provided "AS IS" with no warranties, and confer no rights. Use of included code samples are subject to the terms specified Terms of Use
Tip #74: Did you know…How to Add and Remove AJAX Extenders in Visual Studio 2008 Designer?

Tip#62 showed you how to add an AJAX Control Toolkit to your Toolbox.

Once you have the toolkit here is how you proceed:

1. Switch to Design View of the page and drag drop ScriptManager control from the AJAX Extensions tab of toolbox to the designer.

2. Drag drop an asp button control to the designer to which you would want to add the extender.

4. Select the button control and click on the Smart Tag. This will bring up the   

 Add Extender.. option.

Add Extender

5. Now click on Add Extender….This will bring up the Extender Wizard as shown below. Pick ConfirmButtonExtender and click Ok. Alternatively you can drag drop the ConfirmationButtonExtender from your toolbox on to the button control on your designer.

Confirmation

It is interesting to note that on adding an extender control, Visual Studio’s property grid displays the extender properties. Set the Confirm Text property for the extender to be      “Are you sure?”.

6. Run the page and see that on clicking the button, you get a confirmation box as shown below.

AreYouSure

7. To remove, select the control and bring up the Smart Tag and click on the Remove Extender option in the Smart Task Menu. This will bring up the Remove Extender dialog.

Click Remove and click Ok to remove the extender from your button control.

RemoveExtender

Enjoy!

Reshmi Mangalore

SDET, Visual Web Developer

Posted: Friday, June 05, 2009 6:25 PM by WebDevTools

Comments

What's New said:

Tip#62 showed you how to add an AJAX Control Toolkit to your Toolbox. Once you have the toolkit here

# June 6, 2009 12:18 AM

DotNetShoutout said:

Thank you for submitting this cool story - Trackback from DotNetShoutout

# June 6, 2009 6:02 AM

Shanazhi said:

Thank you very much...looking for more tutorials from you...

# June 6, 2009 8:44 AM

Jason Haley said:

Interesting Finds: June 6, 2009

# June 6, 2009 10:12 AM

ravipendigg said:

Thank you for submitting this cool story - Trackback from ravipendigg

# June 7, 2009 7:05 PM

Sam Gentile's Blog (if (DeveloperTask == Communication && OS == Windows) said:

VS2010 and .NET Framework 4 In-Process Side by Side Part 2 - Common in-proc SxS scenarios Achieving Speedups with Small Parallel Loop Boodies Visual Studio 2010 Performance Part 2: Text Editor A scalable reader/writer scheme with optimistic retry Deploying

# June 8, 2009 10:47 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker