protected void btnUpdateLeave_Click(object sender, EventArgs e) { MasterEntries objMasterEntry = new MasterEntries(); string leaveName = txtEditLeave.Text; int Id = Convert.ToInt32(Session["LeaveId"]); objMasterEntry.UpdateLeave(Id, leaveName); grdLeaveBind(); popupEditLeave.Hide(); }