The Label control used to display text in a set location on a Web page, also it can customize the displayed text through the Text property.

vb.net Label1.Text = "Welcome to ASP.NET"
C# Label1.Text = "Welcome to ASP.NET";
Default.aspx
Untitled Page
The following ASP.NET program display a text in a Label control through its Text property.
Click the following links to see full source code
C# Source Code
VB.NET Source Code
ASP.NET Web Controls - Related Contents
Advertisement
ASP.NET Related Topics