LiteralControl Constructor (String)
.NET Framework (current version)
Initializes a new instance of the LiteralControl class with the specified text.
Assembly: System.Web (in System.Web.dll)
Parameters
- text
-
Type:
System.String
The text to be rendered on the requested Web page.
The following code example creates two instances of the LiteralControl class using the LiteralControl constructor. The two instances render opening and closing tags for an H3 HTML element, and include the text to display within the H3 tags.
.NET Framework
Available since 1.1
Available since 1.1
Show: