protected void MainGrid_RowCommand(object sender, GridViewCommandEventArgs e) { if (e == null) { throw new ArgumentNullException("e"); } if (e.CommandName == "Reset") { int globalAclId = int.Parse(MainGrid.DataKeys[int.Parse(e.CommandArgument.ToString(), CultureInfo.InvariantCulture)].Value.ToString()); StateMachineUtil.UnregisterGlobalRole(mc.Name, globalAclId, int.Parse(StateMachineList.SelectedValue, CultureInfo.InvariantCulture), int.Parse(StateList.SelectedValue, CultureInfo.InvariantCulture)); } CHelper.AddToContext("RebindPage", "true"); }