LiteralControl Constructor (String)

 

Initializes a new instance of the LiteralControl class with the specified text.

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

new : 
        text:string -> LiteralControl

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.

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

.NET Framework
Available since 1.1
Return to top
Show: