LiteralControl.Text Property

 

Gets or sets the text content of the LiteralControl object.

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

abstract Text : string with get, set
override Text : string with get, set

Property Value

Type: System.String

A System.String that represents the text content of the literal control. The default is String.Empty.

The following code example creates a class, CustLiteralControlClass, that extends the LiteralControl class. It creates an instance of the class named myLiteralControlClass1 by using the constructor that does not specify the text of the LiteralControl object. After the object is created, the Text property is used to set the text that it contains.

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

.NET Framework
Available since 1.1
Return to top
Show: