//disables/enables usage of data in the selected row protected void btnOnemoguci_Click(object sender, EventArgs e) { Button btn = sender as Button; int id = int.Parse(btn.CommandArgument); SQLProcedures.EnableDisableFood(id); Response.Redirect("Foods.aspx"); }