This documentation is archived and is not being maintained.

DataBoundLiteralControl::ITextControl::Text Property

Gets or sets the text content of the DataBoundLiteralControl object.

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

private:
virtual property String^ Text {
	String^ get () sealed = ITextControl::Text::get;
	void set (String^ value) sealed = ITextControl::Text::set;
}
<asp:DataBoundLiteralControl Text="String" />

Property Value

Type: System::String
A String that represents the text content of the DataBoundLiteralControl.

Implements

ITextControl::Text

ExceptionCondition
NotSupportedException

An attempt to set the value is made.

This implementation of the ITextControl interface returns the value of the Text property. The value of the Text property is persisted in the view state.

The DataBoundLiteralControl object implements ITextControl but does not support the set method on the Text property. All attempts to use this method will return a NotSupportedException exception.

.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: