What control should you add a control to the ZoneTemplate element of the EditorZone control?

You are developing a Web application that enables the administration and management of the existing Domain.com Web site. The Web application has a page named subcategories.aspx that contains a WebPart control named _productsWebPart. The _productsWebPart WebPart control has a property named _category of type String. You apply the WebBrowsable attribute to the _category property. You also add an EditorZone control to the subcategories.aspx page. The code for the EditorZone control is shown in the following exhibit.

<asp:EditorZone ID="_editorZone" Runat="Server">
<ZoneTemplate>
</ZoneTemplate>
</asp:EditorZone>

You must add a control to the ZoneTemplate element of the EditorZone control to allow users to edit the _category property.
What control should you add?

You are developing a Web application that enables the administration and management of the existing Domain.com Web site. The Web application has a page named subcategories.aspx that contains a WebPart control named _productsWebPart. The _productsWebPart WebPart control has a property named _category of type String. You apply the WebBrowsable attribute to the _category property. You also add an EditorZone control to the subcategories.aspx page. The code for the EditorZone control is shown in the following exhibit.

<asp:EditorZone ID=”_editorZone” Runat=”Server”>
<ZoneTemplate>
</ZoneTemplate>
</asp:EditorZone>

You must add a control to the ZoneTemplate element of the EditorZone control to allow users to edit the _category property.
What control should you add?

A.
A PropertyGridEditorPart control.

B.
A WebPartManager control.

C.
A TextBox control.

D.
A ConnectionsZone control.

Explanation:
The PropertyGridEditorPart control allows users to edit a WebPart control’s property that has the WebBrowsable attribute.

Incorrect Answers:
B: The WebPartManager control is used to connect two WebPart controls. It does not allow a WebPart control’s properties.
C: A TextBox control cannot be added to a ZoneTemplate element.
D: The ConnectionsZones control allows users to configure connections between WebPart controls. It does not allow a WebPart control’s properties.



Leave a Reply 0

Your email address will not be published. Required fields are marked *