Hi,
I'm writing a site, and I've have several HTML controls, such as UL
elements, that are dynamically populated via the application I'm writing
in C#.
Sometimes there aren't any list items that need to be added to the UL
element, so it's rendered as
<ul id=foo"></ul>
on the page, with no other content inside it. Obviously this isn't so
good, so I was wondering if I could delete the UL element from within my
C# code so that if it's going to be empty I just remove it from the page?
Can this be done? If so, how would I go about it?
--
Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk
The opinions stated above are not necessarily representative of
those of my cats. All opinions expressed are entirely your own.