LinkButton _lnk = (LinkButton)sender; GridViewRow _gvr = (GridViewRow)_lnk.NamingContainer; int linkCount = Convert.ToInt32(_lnk); if (linkCount > 0.0) { if (!string.IsNullOrEmpty(user)) { _odObjs = ShiftHeadCountBL.GetEmployeeByShiftNType(_gvr.Cells[1].Text, "AB", Convert.ToDateTime(txt_Date.Text)); } else { _odObjs = ShiftHeadCountBL.GetEmployeeByShiftNApproverNType(_gvr.Cells[1].Text, "AB", Convert.ToDateTime(txt_Date.Text), empCode); } if (_odObjs.EmpColl.Count > 0) { GridView1.DataSource = _odObjs.EmpColl; GridView1.DataBind(); } else { GridView1.DataSource = null; GridView1.DataBind(); } Pop_up.Show(); } ClientScript.RegisterClientScriptBlock(Page.GetType(), "script", "alert('No recound found');", true); } catch (Exception ex) { LogService.LogInfo(ex); } }
int linkCount = Convert.ToInt32(_lnk.Text); if (linkCount > 0.0)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)