Declarative syntax for different borders in server controls

Discussion in 'ASP .Net' started by Nathan Sokalski, Apr 2, 2008.

  1. In many databound controls (DataList, Menu, etc.), there are controls that
    are used to specify the style for certain scenarios (for example, the
    DataList has ItemStyle). Several of the properties of these controls, such
    as BorderWidth, BorderColor, and BorderStyle, only allow you to specify one
    value, but CSS, which is where the values from these properties are used,
    allows up to four (top, bottom, left, and right). Therefore, there is no way
    to declaratively assign different values to the four sides without creating
    a CSS class. Is there a way around this? Is it something that is changed in
    3.5 (I am still using 2.0)? I realize that in general CSS classes are better
    than generating a style attribute, but I still think that server controls
    that offer these properties should offer a way to specify different values
    for all four sides.
    --
    Nathan Sokalski

    http://www.nathansokalski.com/
     
    Nathan Sokalski, Apr 2, 2008
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Guadala Harry
    Replies:
    1
    Views:
    404
    Rutger Smit
    Sep 9, 2004
  2. =?Utf-8?B?c2lhag==?=
    Replies:
    7
    Views:
    1,831
    =?Utf-8?B?c2lhag==?=
    Mar 7, 2005
  3. George
    Replies:
    9
    Views:
    5,491
    George
    Oct 25, 2004
  4. weight watcher
    Replies:
    4
    Views:
    553
    Jonathan N. Little
    Jun 24, 2005
  5. drop
    Replies:
    0
    Views:
    359
  6. muler

    C++ declarative syntax

    muler, Apr 12, 2011, in forum: C++
    Replies:
    3
    Views:
    355
    Victor Bazarov
    Apr 12, 2011
  7. muler

    C++ declarative syntax

    muler, Apr 12, 2011, in forum: C++
    Replies:
    2
    Views:
    376
    muler
    Apr 12, 2011
  8. brian

    HTML Server Controls vs Web Server Controls

    brian, Jan 21, 2005, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    422
    Steve C. Orr [MVP, MCSD]
    Jan 24, 2005
Loading...