operation is invalid due to current state asp.net
im trying to update my db doing: int index = grdExcUsePolicy.EditIndex; GridViewRow row = grdExcUsePolicy.Rows[index]; string id = ((Label)row.FindControl("lblId")).Text; String name = ((TextBox)row.FindControl("txtName")).Text; String created = ((TextBox)row.FindControl("txtCreated")).Text; if (gridUtil.getInsertMode()) { } else { GeneralDbExecuterService.executeSqlNonQuery(string.Format("UPDATE EXCEPTIONAL_USE_POLICY_PARAM SET NAME = '{0}', CREATED_DATE…