/// <summary> /// This function is used for inserting or updating Known Population /// </summary> public void SaveData() { if (Session["New"] == null) { return; } string strErrMsg = bi.SaveKnownPopulation(Session["New"].ToString(), tID.Text, this.dlRaceEdit.SelectedValue, dlActive.Text, knownProfile.GetProfileDictionary()); if (String.IsNullOrEmpty(strErrMsg)) { if (Session["New"].ToString() == "False") { Log.Info(Context.User.Identity.Name, Request.FilePath, Session, "Edited Population", this.tID.Text); PopulateGrid(); SelectedRowData(); } else { Log.Info(Context.User.Identity.Name, Request.FilePath, Session, "Added Population", this.tID.Text); PopulateGrid(); } } else { MessageBox.Show(strErrMsg); } }