I am creating a table using a datalist and I want to add an ID to the
html tag <tr> of each row created (eg <tr id="1">). I have a JavaScript
function which will change the back color of each row based on its ID.
I have tried using the OnItemCreated event to add an ID to the row.
Here is the code I have tried.
Public Sub Item_Created(ByVal s As Object, ByVal e As
DataListItemEventArgs)
e.Item.ID = "1"
End Sub
This is not working; does anyone if this is possible, and if it is,
what I am doing wrong?