protected void btnUpdateDuration_Click(object sender, EventArgs e) { int Id = Convert.ToInt32(Session["durationId"]); TimeSpan duration = TimeSpan.Parse(txtEditDuration.Text); MasterEntries objMasterEntries = new MasterEntries(); objMasterEntries.UpdateDuration(Id, duration); GridDuration(); popupEditDuration.Hide(); }