I have a datagrid with a button colum that when pressed displays to more buttons. Example of what I'm talking about at http://aspnet.4guysfromrolla.com/articles/071002-1.aspx
I've got everything to work but I want to put a javascript onclick event on the canel button.
I've tried to do it this way under the ItemDataBound event after I check to see if e.Item.Cells(0).Controls(0).Text is Edit but I get an error.
Dim deleteButton as Button = e.Item.Cells(0).Controls(1)
deleteButton.Attributes("onclick") = "javascript :return confirm('Delete this date?')"
So, I guess my question is, if you have multiple buttons in a buttonColumn how do you reference the second button?
|