dim p1 as updatepanel
p1 = ctype(me.formview1.findcontrol("updatepanel1"), xxx)
edit:
"updatepanel" finns ju inte som någon typ, så rad 1 och "xxx" är ju fel.
Såg en snutt som såg ut så här:
Dim CurrentUpdatePanel As System.Web.UI.UpdatePanel
CurrentUpdatePanel= e.Item.FindControl("UpdatePanel2")