This documentation is archived and is not being maintained.

CatalogZoneBase::CloseVerb Property

Gets a reference to a WebPartVerb object that enables end users to close the catalog user interface (UI) and return the page to normal browse mode.

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

[PersistenceModeAttribute(PersistenceMode::InnerProperty)]
public:
virtual property WebPartVerb^ CloseVerb {
	WebPartVerb^ get ();
}

Property Value

Type: System.Web.UI.WebControls.WebParts::WebPartVerb
A WebPartVerb that enables end users to close the catalog UI on the Web page.

The close verb is referenced by the CloseVerb property on a control derived from the CatalogZoneBase class.

User can click the close verb in the zone footer. When the user clicks the close verb, any CatalogPart controls the user has selected are ignored, the catalog UI closes, and the page returns to normal browse mode.

The close verb is a zone-level control, meaning that its action applies at the level of the whole zone. When a user clicks the close verb, any controls that have been selected but not added to the page are ignored, the catalog is closed, and the page returns to browse mode.

The following code example demonstrates how to access the CloseVerb 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 CloseVerb property declaratively in a Web page. This example customizes the Description property 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 CloseVerb 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, by positioning your mouse pointer over the Close button, you can see its description text in a ToolTip. You can also click the Enable or Disable Verbs button to demonstrate that you can access the close verb programmatically.

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

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

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: