![]() ![]() | ||
You use the Web server Label control to display text that the user isn't supposed to change. Here's the class hierarchy for this class:
Object Control WebControl Label
You can change the displayed text with the Text property in code, as you can in Windows forms (just bear in mind that it takes a round trip to the server to change that text). In HTML, Web server labels become <span> elements that enclose text. Here's an example, created by VB .NET; this label is displaying the text "Hello!", surrounded by a dashed border:
<span id="Label1" style="border-style:Dashed;font-size:XX- Large;height:118px;width:203px;Z-INDEX: 101; LEFT: 250px; POSITION: absolute; TOP: 79px">Hello!</span>
![]() ![]() | ||