How to use Font.names property for a single label as Font.name is already there?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jagdeep gupta
    New Member
    • Aug 2010
    • 98

    #1

    How to use Font.names property for a single label as Font.name is already there?

    there is two properties under font area for web control What is use of Names as Name set the value of font.
    If any please give example for it.

    Thanks In advance
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    I'm not sure what Font.Names or Font.Name is.
    I always use CSS to set the font style for my controls.

    For example:

    Code:
    <asp:Label ID="myLabel" runat="server" style="font-family:arial,sans-serif;" />
    Or if I'm using CSS classes I would set the following:

    Code:
    <style type="text/css">
      .myLabelStyle{
        font-family:arial,sans-serif;
      }
    </style>
    
    
    <asp:Label ID="myLabel" runat="server" CssClass="myLabelStyle" />
    -Frinny

    Comment

    • jagdeep gupta
      New Member
      • Aug 2010
      • 98

      #3
      Thanks for reply actually i need to understand the property thats why i am asking otherwise alternatives are there

      Comment

      Working...