Net-informations.com
SiteMap  | About    

Label Control

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.

label-control

vb.net

  Label1.Text = "Welcome to ASP.NET"

C#

  Label1.Text = "Welcome to ASP.NET";

Default.aspx

  

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title>Untitled Page</title>
</head>
<body>
	<form id="form1" runat="server">
	<div>
		<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
	</div>
	</form>
</body>
</html>

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
default.aspx.cs
default.aspx.vb





net-informations.com (C) 2016    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.