标签:
定位导航列表
引用using System.Web.UI.HtmlControls;
添加标签为服务器控件
1 HtmlGenericControl li = (HtmlGenericControl)this.Master.FindControl("HHB"); 2 li.Attributes.Add("class", "dropdown active"); 3 HtmlGenericControl ul123 = (HtmlGenericControl)this.Master.FindControl("HHBul"); 4 ul123.Style.Add("display", "block"); 5 LinkButton lbt = (LinkButton)this.Master.FindControl("LinkButton5"); 6 lbt.CssClass = "dul_active";
标签:
原文地址:http://www.cnblogs.com/njccqx/p/5756391.html