Repeater - last node

Discussion in 'ASP .Net Web Controls' started by John Jackson, Sep 29, 2006.

  1. John Jackson

    John Jackson Guest

    I'm very, very new to ASP.NET - but have been trying to learn on my
    own... I'm currently attempting to move my company's website over to a
    ASP.NET website and am running into an issue. Because not all browsers
    support the :first-child/last-child psuedoclass I have to assign a CSS
    class of "firstchild/lastchild" to HTML tags for their respective
    position (i.e. in a list). This is so I can control their appearance on
    the page when needed.
    Now using Visual Studio 2005, I can create an XML sitemap and populate
    lists with the Repeater control for menus, etc. I'm confused on how I
    can determine the last node and how to output a different Item Template
    for that specific node - basically add a CSS class to the <li> tag for
    the first and last nodes... Any help here would be extremely helpful...
     
    John Jackson, Sep 29, 2006
    #1
    1. Advertising

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. wolf
    Replies:
    0
    Views:
    578
  2. Replies:
    0
    Views:
    1,670
  3. Replies:
    0
    Views:
    396
  4. Tjerk Wolterink
    Replies:
    2
    Views:
    1,521
    Dimitre Novatchev
    Aug 24, 2006
  5. sangram
    Replies:
    16
    Views:
    2,087
Loading...

Share This Page