May need to do this as wellmyDeleteButton = CType(e.Item.FindControl("btnDelete"),LinkButton)also, make sure you have imports System.Web.UI.Controls namespaceI would in C#, so I sometimes forget the vb differences.