/// <summary> /// Update Database Make data as Obsoluted /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void IsObsolete_CheckedChanged(Object sender, EventArgs e) { string message = string.Empty; try { CheckBox chk = (CheckBox)sender; GridViewRow gr = (GridViewRow)chk.Parent.Parent; string CulturepropTypeID = ((Literal)gr.FindControl("litCONCERNID")).Text; CulturePropertiesMasterBLL CulturePropertiesMasterBLLObj = new CulturePropertiesMasterBLL(); message = CulturePropertiesMasterBLLObj.ObsoleteCulturePropType(Convert.ToInt32(CulturepropTypeID), Convert.ToString(chk.Checked)); if (string.IsNullOrEmpty(message) || message == "" || message == "null") { message = "Data updated successfully"; } BindGrid(false, true); if (message != "") { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "Added", "alert('" + message + "');", true); } } catch (Exception ex) { throw ex; } }