Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IsLiteralContent Method

Control.IsLiteralContent Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Determines if the server control holds only literal content.

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

member IsLiteralContent : unit -> bool

Return Value

Type: System.Boolean
true if the server control contains solely literal content; otherwise false.

When this method returns true, the server control's collection holds a single literal control.

The following example checks whether the page that contains the server controls has posted back. If it has, it calls the IsLiteralContent method to determine whether the control contains just literal content, or is a parent control to other server controls. If it contains solely literal content, the UniqueID property of the LiteralControl that represents that content is written to the response.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft