CodeBlockType Enumeration

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Specifies the type of the code block.

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

public enum CodeBlockType

Member nameDescription
Code

Indicates that the block type is for code. A Code block type is contained inside the <% %> characters.

DataBinding

Indicates that the block type is for data binding. A DataBinding block type is contained inside the <%# %> characters.

EncodedExpression

Indicates that the block type is for encoded expressions. A EncodedExpression block type is contained inside the <%: %> characters.

Expression

Indicates that the block type is for data expressions. A Expression block type is contained inside the <%= %> characters.

.NET Framework
Available since 4.5
Return to top
Show: