<p>I have a scrolling div with Three linkbuttons and three differents divs. I need to apply CSS to active linkbutton  as soon as button is clicked.The codes used by me are:</p>

<pre><code>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;
    }
</code></pre>

<p>Thanks &amp; Regards,</p>

<p>Khushi</p>

Instead of using server side event use client side javascript event. Try:
```
```
$get('btnId').setAttribute("class", "some_class_name");
```
```