How to render sitemappath with <ul> tags without <spans>?

Discussion in 'ASP .Net Web Controls' started by hummh, Aug 9, 2007.

  1. hummh

    hummh Guest

    Hi,

    I'm fighting with the asp.net 2.0 sitemappath control. I want to
    render breadcrumb items using <ul> and <li> tags, but the control
    mixes them with <span> tags. That leads to invalid XHTML transitional
    code, because <ul> can't be mixed with spans. Is there a way to
    render
    the sitemappath without any (unnecessary) <span> tags?


    TIA
    Harry
    hummh, Aug 9, 2007
    #1
    1. Advertising

  2. On 9 Aug, 17:55, hummh <> wrote:
    > Hi,
    >
    > I'm fighting with the asp.net 2.0 sitemappath control. I want to
    > render breadcrumb items using <ul> and <li> tags, but the control
    > mixes them with <span> tags. That leads to invalid XHTML transitional
    > code, because <ul> can't be mixed with spans. Is there a way to
    > render
    > the sitemappath without any (unnecessary) <span> tags?
    >
    > TIA
    > Harry


    Override the render of the control.
    George Leithead, Aug 13, 2007
    #2
    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. Lau Lei Cheong

    Page.Render do not render complete page

    Lau Lei Cheong, May 15, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,065
    Lau Lei Cheong
    May 15, 2004
  2. darrel
    Replies:
    6
    Views:
    570
    darrel
    Jul 2, 2004
  3. Don Huan

    DIVs and SPANs

    Don Huan, May 8, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    360
    Aquila Deus
    May 8, 2005
  4. hummh
    Replies:
    0
    Views:
    460
    hummh
    Aug 9, 2007
  5. Glenn Gillen
    Replies:
    0
    Views:
    274
    Glenn Gillen
    Nov 17, 2006
Loading...

Share This Page