Try this
Attach event for Repeater
onitemcommand="rptAttachmentNew_ItemCommand"
Add Command Name and Argument for the Image control
<asp:image runat="server" commandname="delete" commandargument='<%#Eval("Id")%>' id="imgDelete" xmlns:asp="#unknown" />
Handle the event in code behind
protected void rptAttachmentNew_ItemCommand(object source, RepeaterCommandEventArgs e)
{
if (e.CommandName == "delete")
{
int id = Convert.ToInt(e.CommandArgument);
}
}
Hope this helps...