For future reference, this is what I found, and it works great!
Code:
Dim btn As System.Web.UI.WebControls.ImageButton
btn = e.Item.FindControl("btnDelete")
btn.Attributes.Add("onclick", "return confirm('Are you sure you want to delete this item?');")