These tutorials demonstrate selected features in ASP.NET version 2.0, but they are compatible with later versions of ASP.NET as well. For the current documentation, see the ASP.NET portal on the MSDN Web site.

 

 

   Welcome   |   ASP.NET   |   Web Services   |   Class Browser   
  |   I want my samples in...      

ASP.NET Quickstart Tutorials

Label

The Label control displays text in a set location on the page. Unlike static text, the Text property of a label can be set programmatically. The following sample illustrates using the Label control.

VB Label1.aspx
Run Sample View Source

The following sample illustrates how to databind the Label control.

VB Label2.aspx
Run Sample View Source