ExpressionEditor.ExpressionPrefix Property

Gets the expression prefix that identifies expression strings that are supported by the expression editor implementation.

Namespace: System.Web.UI.Design
Assembly: System.Design (in system.design.dll)

public:
property String^ ExpressionPrefix {
	String^ get ();
}
/** @property */
public String get_ExpressionPrefix ()

public function get ExpressionPrefix () : String

Not applicable.

Property Value

A string representing the prefix for expressions supported by the class derived from the ExpressionEditor; otherwise, an empty string (""), if the expression editor does not have an associated expression prefix.

The expression prefix identifies the custom expression type and associates an expression with the expression builder and expression editor. When custom expressions are parsed in a page, the expression prefix is used to create instances of the associated ExpressionBuilder and ExpressionEditor classes. To associate an expression prefix with an expression builder and expression editor, apply the ExpressionEditorAttribute and ExpressionPrefixAttribute attributes to the custom ExpressionBuilder class and configure the expression prefix for an expression builder in the expressionBuilders element in the Web configuration file.

Typically, derived classes do not override the ExpressionPrefix property. The base ExpressionEditor class sets the ExpressionPrefix value based on the ExpressionPrefixAttribute attribute for the associated ExpressionBuilder object.

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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: