protected void DeleteButton_Click(Object sender, EventArgs e) { try { Int32 id = (sender as IButtonControl).CommandArgument.ToInt32(); Mailing mailing = Mailing.LoadSingle(id); mailing.Delete(); } catch (Exception ex) { this.Master.ShowError(ex); } }