我有一個帶有三個linkbuttons和三個不同div的滾動div。我需要儘快應用CSS活躍的LinkButton的按鈕是我用clicked.The代碼:在asp.net 2.0中動態應用CSS
protected void btnNetwork_Click(object sender, EventArgs e)
{
this.btnForecast.CssClass = "li_1";
this.btnBlog.CssClass = "li_2";
this.btnNetwork.CssClass = "li_3_active";
this.btnNetwork.ForeColor = System.Drawing.Color.White;
lblMsg.Visible = false;
BindGW("-----------------------------------");
Forecast.Visible = false;
Blog.Visible = false;
Network.Visible = true;
}
感謝&問候,
Khushi
那麼,有什麼問題嗎?上述不適合你嗎? – 2008-11-22 08:59:41