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

H

hummh

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
 
G

George Leithead

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,691
Members
48,796
Latest member
Greg L.

Latest Threads

Top