protected void ToggleCancelButton_Click(Object sender, EventArgs e) { Int32 id = (sender as IButtonControl).CommandArgument.ToInt32(); SaleItem mailing = SaleItem.LoadSingle(id); mailing.ToggleCancel(); }