定位导航列表
引用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";
时间: 2024-10-15 20:16:26