protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e) { try { objBusinessUI.RouteID = Int32.Parse(GridView1.DataKeys[e.RowIndex].Value.ToString()); objBusinessUI.UpdatedBy = "Admin"; objBusinessUI.UpdatedOn = DateTime.Now; string strMsg = objDataUI.DeleteRoute(objBusinessUI); if (strMsg == "SUCCESS") { lblErrorMSG.Text = "Record deleted successfully"; } else { lblErrorMSG.Text = "There is problem in deleting record!Please try later"; } } catch (Exception ex) { log.Error(System.Reflection.MethodBase.GetCurrentMethod().ToString() + ex.StackTrace); }
GridView1.DataKeys[e.RowIndex].Value
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)