<asp:Label AccessKey="string" AssociatedControlID="string" BackColor="color name|#dddddd" BorderColor="color name|#dddddd" BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge| Inset|Outset" BorderWidth="size" CssClass="string" Enabled="True|False" EnableTheming="True|False" EnableViewState="True|False" Font-Bold="True|False" Font-Italic="True|False" Font-Names="string" Font-Overline="True|False" Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium| Large|X-Large|XX-Large" Font-Strikeout="True|False" Font-Underline="True|False" ForeColor="color name|#dddddd" Height="size" ID="string" OnDataBinding="DataBinding event handler" OnDisposed="Disposed event handler" OnInit="Init event handler" OnLoad="Load event handler" OnPreRender="PreRender event handler" OnUnload="Unload event handler" runat="server" SkinID="string" Style="string" TabIndex="integer" Text="string" ToolTip="string" Visible="True|False" Width="size" > </asp:Label>
<%@ Page Language="VB" %> <script runat="server"> Sub Page_Load(sender As Object,e As EventArgs) Me.lblText1.Text = "www.ThaiCreate.Com 1" Me.lblText2.Text = "www.ThaiCreate.Com 2" Me.lblText3.Text = "www.ThaiCreate.Com 3" Me.lblText4.Text = "www.ThaiCreate.Com 4" Me.lblText4.Font.Size = 20 Me.lblText4.ForeColor = Drawing.Color.Green End Sub </script> <html> <head> </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>
ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท