I have a UL list in a ASPX page:
Tab 1
Use asp:bulletedList and your list will be much easier.
tab1 tab2 tab3
Code Behind:
ListItem li = new ListItem(); li.Value = "*.html"; //html goes here i.e. xtab1.html li.Text = "New Text"; //text name goes i.e. here tab1 blTabs.Items.Add(li);