SpeakComputers.com
Home
Software
Electronics
Desktop Computers
Laptops
Games
Handheld Devices
Mobile Phones
Cameras
Camcorders
Printers
Books
Software Downloads 2012 Software Mac Software Security Student Editions Windows 7 Office 2010
ASP.NET C# VB.NET C++ .NET Infragistics DevComponents

ASP.NET Label Control.

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

The ASP.NET Label control is used to render text on the webpage. The control is rendered in HTML as a Span element.

Working example.

Text within the ASP.NET Label control.

Creating the ASP.NET Label control.
From the above example.

<asp:Label ID="Label1" runat="server" BorderColor="Red" BorderStyle="Dotted" BorderWidth="3px" Text="Text within the ASP.NET Label control."></asp:Label>

The above example will be rendered as HTML with the result below (source).

<span id="ctl00_ContentPlaceHolder1_Label1" style="display:inline-block;border-color:Red;border-width:3px;border-style:Dotted;">Text within the ASP.NET Label control.</span>

The border style property associated with the ASP.NET Label control is rendered as the style attribute for the HTML span element.

Computer Security
AntiVirus Software
Internet Security
Parental Controls
Backup & Recovery
Computer Protection
Anti Malware
Photo & Video
Photo & Video Editing
Video Music
Desktop Publishing
Professional Design
Home Publishing
Clipart
Business & Accounting
Accounting
Payroll
Check Printing
TAX
H&R Block
Microsoft Office
Design
Graphic Design
Home Design
Garden Design
Interior Design
Computer Aided Design
3D Design
Students & Teacher
Adobe
Microsoft Office
Dragon Naturally Speaking
Corel Draw
Serif
Student/Teacher Software
Copy Right 2006 SpeakComputers.com - All Rights Reserved.
Home About Privacy Policy Resouces