LiteralControl Constructor ()
.NET Framework (current version)
Initializes a new instance of the LiteralControl class that contains a literal string to be rendered on the requested ASP.NET page.
Assembly: System.Web (in System.Web.dll)
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.
.NET Framework
Available since 1.1
Available since 1.1
Show: