This documentation is archived and is not being maintained.

WebPartZoneBase::EditVerb Property

Gets a reference to a WebPartVerb object that enables end users to edit WebPart controls in a zone.

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

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

Property Value

Type: System.Web.UI.WebControls.WebParts::WebPartVerb
A WebPartVerb that enables end users to edit WebPart controls.

The edit verb referenced by the EditVerb property on a WebPartZoneBase control enables an end user to switch a WebPart control in the zone into edit mode, where the user can personalize the appearance, properties, layout, and content of the control.

The same edit verb is used for all controls in a zone. When a Web Parts page enters into the edit display mode (EditDisplayMode), the edit verb becomes visible in the verbs menu of each WebPart control contained in the zone.

The following code example demonstrates the declarative use of the EditVerb property on a WebPartZone control. Note that the property is accessed declaratively by using the <EditVerb> element with the WebPartZone1 control. An edit verb would be present on this control in edit mode even if you did not use the <EditVerb> element here, but by using it, you can set some of its attributes, such as the text that represents the verb in the user interface (UI). For the full code example, including the code-behind source file and the .aspx page that contains the zone in this code, see the WebPartZoneBase class overview.

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

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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