Training
Module
Build control add-in objects in Dynamics 365 Business Central - Training
Do you need to build control add-ins? This module discusses how to build and integrate control add-ins with JavaScript in AL.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
by Microsoft
Learn how to add AJAX Control Toolkit controls and extenders to your ASP.NET pages.
The AJAX Control Toolkit contains a set of controls and control extenders. In this brief tutorial, you learn how to add both controls and control extenders to an ASP.NET page.
Note
For instructions on installing the AJAX Control Toolkit and adding the AJAX Control Toolkit to the Visual Studio/Visual Web Developer toolbox, see the tutorial Get Started with the AJAX Control Toolkit.
An AJAX Control Toolkit control works just like a normal ASP.NET control. You can drag the control from the toolbox onto an ASP.NET page. You can add the control to the page in either Design view or Source view.
There is one special requirement when using the controls from the AJAX Control Toolkit. The page must contain a ScriptManager control. The ScriptManager control is responsible for including all of the necessary JavaScript required by the AJAX Control Toolkit controls.
For example, the AJAX Control Toolkit tab includes a control named the Editor control. This control displays a rich HTML editor. Follow these steps to add the Editor control to a page:
Figure 01: Selecting the HTML Editor control(Click to view full-size image)
Figure 02: Visual Studio Designer with ScriptManager and Edit control(Click to view full-size image)
Figure 03: The DisplayEditor.aspx page(Click to view full-size image)
The AJAX Control Toolkit also contains control extenders. As its name suggests, a control extender extends the functionality of an existing control. For example, the ConfirmButton control extender extends the standard ASP.NET Button control. The extender changes the Button control's behavior so that the Button displays a confirmation dialog when you click it.
A control extender, just like an AJAX Control Toolkit control, requires a ScriptManager control. You must add a ScriptManager control to a page before you start using control extenders in the page.
Follow these steps to use the ConfirmButton control extender:
Figure 04: The Add Extender task option(Click to view full-size image)
Figure 05: Selecting the ConfirmButton control extender(Click to view full-size image)
Figure 06: Setting a ConfirmButton property(Click to view full-size image)
When the page opens, you should see a button. When you click the button, you get the confirmation dialog in Figure 7.
Figure 07: Displaying the confirmation dialog(Click to view full-size image)
Notice that you normally do not drag a control extender onto a page. Instead, you use the Add Extender task option to add an extender to a control that you have already added to a page. Notice, furthermore, that you set control extender properties by opening the property sheet for the control being extended.
A single ASP.NET control can be extended by multiple control extenders. The property sheet for the control being extended will list all of the control extenders associated with the control.
Training
Module
Build control add-in objects in Dynamics 365 Business Central - Training
Do you need to build control add-ins? This module discusses how to build and integrate control add-ins with JavaScript in AL.