ASP.NET(vb.net) & Label - asp:Label - asp:Label : Displays static text on a Web Forms page and allows you to manipulate it programmatically.
ShotDev Focus:
- ASP.NET(vb.net) & Label - asp:Label
Tag Control :
<asp:Label id="Label1" Text="label" runat="server"/> or <asp:Label id="Label1" runat="server"> Text </asp:Label>
Example
Label.aspx
<%@ Page Language="VB" %> <script runat="server"> Sub Page_Load(sender As Object,e As EventArgs) Me.lblText1.Text = "www.ShotDev.Com 1" Me.lblText2.Text = "www.ShotDev.Com 2" Me.lblText3.Text = "www.ShotDev.Com 3" Me.lblText4.Text = "www.ShotDev.Com 4" Me.lblText4.Font.Size = 20 Me.lblText4.ForeColor = Drawing.Color.Green End Sub </script> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <form runat="server"> <asp:Label id="lblText1" runat="server"></asp:Label><br> <asp:Label id="lblText2" runat="server"></asp:Label><br> <asp:Label id="lblText3" runat="server"></asp:Label><br> <asp:Label id="lblText4" runat="server"></asp:Label><br> </form> </body> </html>
Screenshot