Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (16 sloc) 719 Bytes
<h3><font face="Verdana">Declaring Server Controls</font></h3>
This sample demonstrates how to declare the &lt;asp:label&gt; server control and
manipulate its properties within a page.
<form runat=server>
<asp:label id="Message1" font-size="16" font-bold="true" forecolor="red" runat=server>This is Message One</asp:label>
<asp:label id="Message2" font-size="20" font-italic="true" forecolor="blue" runat=server>This is Message Two</asp:label>
<asp:label id="Message3" font-size="24" font-underline="true" forecolor="green" runat=server>This is Message Three</asp:label>