G
Guest
Hi folks
I want to add a <ul> list with some <li> items in .net code behind on the fly
I was under the impression that you could instantiate any HTML control by
using the HTMLControl class with constructor parameters like so
HTMLControl("ul")
the purpose being that I could then program some of the attributes of the ul
or the li using logic....
please don't worry if this is the best way but how can I get an unordered
list written out in code rather than in declarative HTML
I don't want to use the Literal control class, because I want some
server-side programming here
Regards and many thanks in advance
CharlesA
I want to add a <ul> list with some <li> items in .net code behind on the fly
I was under the impression that you could instantiate any HTML control by
using the HTMLControl class with constructor parameters like so
HTMLControl("ul")
the purpose being that I could then program some of the attributes of the ul
or the li using logic....
please don't worry if this is the best way but how can I get an unordered
list written out in code rather than in declarative HTML
I don't want to use the Literal control class, because I want some
server-side programming here
Regards and many thanks in advance
CharlesA