Hi friends,
I have a series of buttons inside a DataList (these buttons are generated during tha DataBind, and depends on my DataBase).
When I click on one of these buttons I would like to change the BackColor. This is my code, but It doesn't work:
Protected Sub myDataList_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataListCommandEventArgs) Handles myDataList.ItemCommand
If e.CommandName = "Update" Then
' Change BackColor
'
Dim myButton As Button = CType(e.Item.FindControl("myButton"), Button)
btnCodActuator.BackColor = System.Drawing.ColorTranslator.FromHtml("#DBE4E6")
[...]
End If
End Sub
How can I do it?
...
Go to the complete details ...