give control in datalist color
<p>I had datalist as menu that display categories and subs and I want to give red color or css for the selected item(category or sub)
 I tried but I had a problem 
This is my code</p>

<p>

<pre><code> private  Label Lb;

 protected void Page_Load(object sender, EventArgs e)
{


}
</code></pre>

<p>protected void dlCategory_ItemDataBound(object sender, DataListItemEventArgs e)</p>

<pre><code>{
    if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
    {
         Lb = (Label)e.Item.FindControl("LblCat");

    }


}



protected void dlCategory_SelectedIndexChanged(object sender, EventArgs e)
{


        Lb.ForeColor = System.Drawing.Color.Red;


}
</code></pre>

<p>}</p>
