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)
Return Value
Type: System::Booleantrue if the server control contains solely literal content; otherwise false.
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.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.