Export (0) Print
Expand All

Label Constructor

Initializes a new instance of the Label class.

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

new : unit -> Label

Use this constructor to create and initialize a new instance of the Label class.

The following example shows how to create and initialize a new instance of the Label control.

NoteNote

The following code sample uses the single-file code model and may not work correctly if copied directly into a code-behind file. This code sample must be copied into an empty text file that has an .aspx extension. For more information on the Web Forms code model, see ASP.NET Web Forms Page Code Model.

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