raphael232
Programmer
Hi, can anyone see what is wrong with the following
I am trynig to add onmouseover and onmouseout attributes to each row of my datalist. But when i view the source nothing has changed.
Appreciate if you could help. Thanks
Code:
Protected Sub ImagesList_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListItemEventArgs) Handles ImagesList.ItemDataBound
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
e.Item.Attributes.Add("onmouseover", "this.className = 'TableContentHover';")
e.Item.Attributes.Add("onmouseout", "this.className = '';")
End If
End Sub
I am trynig to add onmouseover and onmouseout attributes to each row of my datalist. But when i view the source nothing has changed.
Appreciate if you could help. Thanks