ASP.NET wrap an asp:HyperLink in <li>'s, from server-side

RPI_Soldier

New Member
I have the next structure for a menu item:\[code\]class MenuItem{ public string Path, Title;}\[/code\]I want to be able to Iterate an object of \[code\]MenuItem[]\[/code\], creating a new object of \[code\]asp:HyperLink\[/code\] on each iteration, and to add it to a \[code\]<ul>\[/code\] list.One thing that must happen is that each HyperLink will be inside a \[code\]<li>\[/code\] tag.How can I do that?
 
Back
Top