Tuesday, 29 July 2014

How to use theme and skin in ASP.NET Label

How to use theme and skin in ASP.NET Label
  1. <%@ Page Language=“C#” Theme=“Blue” %>

  2. <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>

  3. <script runat=“server”>

  4. </script>

  5. <html xmlns=“http://www.w3.org/1999/xhtml”>
  6. <head id=“Head1″ runat=“server”>
  7.     <title>How to use theme and skin in Label</title>
  8. </head>
  9. <body>
  10.     <form id=“form1″ runat=“server”>
  11.     <div>
  12.         <h2 style=“color:Red”>Label Example: Theme</h2>
  13.         <asp:Label
  14.              ID=“Label1″
  15.              runat=“server”
  16.              Text=“This Label using theme.”
  17.              BackColor=“DarkGreen”
  18.              ForeColor=“FloralWhite”
  19.              Font-Size=“X-Large”
  20.              Font-Italic=“true”
  21.              BorderColor=“LawnGreen”
  22.              BorderWidth=“2″
  23.              >
  24.         </asp:Label>
  25.     </div>
  26.     </form>
  27. </body>
  28. </html>


No comments:

Post a Comment