Create User Controls
Your own User Controls can be created for use on Enterprise Portal pages. User Controls are created in a Visual Studio Web project. Use the following procedure to create a new user control:
1. Start Visual Studio.
2. Open the Web project for which you are creating a User Control.
3. Select the Web site in Solution Explorer.
4. In the Website menu, click Add New Item.
5. In the Add New Item window, be sure the Language drop-down is
set to Visual C#.
6. Click Dynamics AX User Control.
7. Name the new User Control.
8. Click Add.
Design a User Control
To design a User Control, you use the graphical design view in Visual Studio. There will also be cases where you edit the source for the User Control directly.
Use the following procedure to design a new user control:
1. In Solution Explorer, right-click the User Control.
2. Click View Designer to view the graphical layout for the User Control Or Click View Code to view the source that defines the User Control.
3. Using the Toolbox, define the contents of the control by adding components from the Dynamics AX group in the Toolbox.
Add a User Control to the AOT
After the user control has been defined, you must add it to the AOT so it can be accessed by Enterprise Portal. Use the following procedure to add a user control to the AOT:
1. In Solution Explorer, right-click the User Control.
2. Click Add to AOT. The User Control will be added to the Managed node in the AOT. This is located under the Web Content node of the main Web node.
Your own User Controls can be created for use on Enterprise Portal pages. User Controls are created in a Visual Studio Web project. Use the following procedure to create a new user control:
1. Start Visual Studio.
2. Open the Web project for which you are creating a User Control.
3. Select the Web site in Solution Explorer.
4. In the Website menu, click Add New Item.
5. In the Add New Item window, be sure the Language drop-down is
set to Visual C#.
6. Click Dynamics AX User Control.
7. Name the new User Control.
8. Click Add.
Design a User Control
To design a User Control, you use the graphical design view in Visual Studio. There will also be cases where you edit the source for the User Control directly.
Use the following procedure to design a new user control:
1. In Solution Explorer, right-click the User Control.
2. Click View Designer to view the graphical layout for the User Control Or Click View Code to view the source that defines the User Control.
3. Using the Toolbox, define the contents of the control by adding components from the Dynamics AX group in the Toolbox.
Add a User Control to the AOT
After the user control has been defined, you must add it to the AOT so it can be accessed by Enterprise Portal. Use the following procedure to add a user control to the AOT:
1. In Solution Explorer, right-click the User Control.
2. Click Add to AOT. The User Control will be added to the Managed node in the AOT. This is located under the Web Content node of the main Web node.
Comments