nav.Controls.Clear();
//循环输出
nav.Controls.Add(new LiteralControl("<li class=\"left\"></li>"));
for (int i = 0; i < firstNavs.Count; i++)
{
SysMenu menu = firstNavs[i];
//前部
if (i == 0)
nav.Controls.Add(new LiteralControl("<li class=\"first\">"));
else
nav.Controls.Add(new LiteralControl("<li>"));
//中部
System.Web.UI.WebControls.LinkButton lb = new System.Web.UI.WebControls.LinkButton();
lb.ID = menu.Id.Replace("-", "");
lb.Text = menu.Name;
lb.Click += new EventHandler(LinkButtonFirst_Click);
if (FirstNav == menu.Id)
lb.CssClass = "current";
nav.Controls.Add(lb);