I have tried multiple methods and I cannot figure out why this code will not fire.
<asp:Button id="deleteLink" runat="server" text='delete'
and" commandargument='<%# Eval("AttachmentId") %>' />
Any help would be appreciated!
//code behind code
protected void deleteLink_Command(object sender, CommandEventArgs e)
int attachId = int.Parse(e.CommandArgument.ToString());
Attachment attach = new Attachment();
this.Messages.Add(new SuccessMessage("Attachment has been deleted"));