CatalogZoneBase.AddVerb Property

Note: This property is new in the .NET Framework version 2.0.

Gets a reference to a WebPartVerb object that enables end users to add controls from a catalog to a Web Parts page.

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in system.web.dll)

public:
virtual property WebPartVerb^ AddVerb {
	WebPartVerb^ get ();
}
/** @property */
public WebPartVerb get_AddVerb ()

public function get AddVerb () : WebPartVerb

Property Value

A WebPartVerb that enables end users to add controls from the catalog to a Web page.

The add verb is referenced by the AddVerb property on a control derived from the CatalogZoneBase class. The add verb adds a control that an end user has selected in the catalog to a Web page. Typically, the add verb appears in the user interface (UI) as a Button control, although it can also be a link or an image.

The add verb is a zone-level control, meaning that although there might be several CatalogPart controls in the catalog, the add verb applies to all the controls selected by the user and adds them to the selected zone.

The following code example demonstrates how to access the AddVerb property both declaratively and programmatically. For the full code required to run the example, see the Example section of the CatalogZoneBase class overview.

The first part of the code example shows how to access the ApplyVerb property declaratively in a Web page. This example customizes the text for the verb.

No code example is currently available or this language may not be supported.

The second part of the example shows how to access the AddVerb property programmatically, by using a toggle button to enable or disable it.

No code example is currently available or this language may not be supported.

When you load the page in a browser, you can select Catalog from the drop-down list to switch to catalog display mode. When the catalog is visible, you can examine the customized text on the Button control for the add verb, and you can click the Enable or Disable Verbs button to demonstrate that you can access the apply verb programmatically.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: