工作中css
.cs
public string BannerChange(string includeStr)
{
string activeStr = string.Empty;
string ScName = Request.ServerVariables["url"].ToString();
if (ScName.IndexOf(includeStr) > 0)
{
activeStr = "active";
}
return activeStr;
}
.aspx
<li class="style6 <%=BannerChange("Default.aspx") %>">