共用方式為


AxUserControlWebPart

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

The AxUserControlWebPart component displays a User Control in an ASP.NET page. It is used when you create pages for the ASP.NET test environment. It is automatically included on the Default.aspx page that is part of a Microsoft Dynamics AX Web Application project. To add more AxUserControlWebPart components to an .ASP.NET page, you would add code such as this to the markup:

<dynamics:AxUserControlWebPart ID="AxUserControlWebPart1" runat="server" 
          ManagedContentItem="WorkOrderDetails" />

Microsoft Dynamics AX Properties

The following properties specific to Microsoft Dynamics AX are available for this web part.

Property

Description

Default Title

Specifies the default title for the web part.

Managed Web Content Item

The name of the Web Control (an item in the Web > Web Content > Managed node of the AOT) that will be displayed in the web part.

WebPart Role

Specifies whether the User Control web part is a provider or consumer in web part communication for the page.

Update Mode

When connected to another web part, specifies when the content of the web part will be updated. The value can be Conditional or Always. If it is set to Conditional, the content of the web part is updated only when the context changes. When set to Always, the web part will be updated even when the context has not changed.

See also

How to: Test User Controls in Visual Studio