create '<UL>' lists

  • Thread starter Thread starter Dionísio Monteiro
  • Start date Start date
D

Dionísio Monteiro

Hi there,

Can I programatically create <UL> lists?
What I mean is, I can create a table programatically, like this:
------------------------------
Table tb = new Table();
Row r = new TableRow();
Cell c = new TableCell();
------------------------------

Can I do something similar to create <UL> lists?

Thanx?
Dionísio
 
You can make any tag you want with the HtmlGenericControl, and then setting
the TagName property after you instantiate it. Then you can add other
controls, or text to it.
 
use a generic string object, pass all the html tags into it.
I don't believe there is any UL "control"
 
there is no builtin ul, so you use the generic

HtmlGenericControl ul = new HtmlGenericControl("ul");
HtmlGenericControl li = new HtmlGenericControl("li");

li.InnerText = "list 1";
ul.Controls.Add(li);


-- bruce (sqlwork.com)
 
Back
Top