public void SaveData() { if (Session["New"] == null) { return; } string[] strParameters = new string[17]; strParameters[0] = this.tID.Text; string strErrMsg = bi.SaveKnownProfile(Session["New"].ToString(), tID.Text, dlActive.Text, knownProfile.GetProfileDictionary()); if (String.IsNullOrEmpty(strErrMsg)) { if (Session["New"].ToString() == "False") { Log.Info(Context.User.Identity.Name, Request.FilePath, Session, "Edited Lab Type", this.tID.Text); PopulateGrid(); SelectedRowData(); } else { Log.Info(Context.User.Identity.Name, Request.FilePath, Session, "Added Lab Type", this.tID.Text); PopulateGrid(); } } else { MessageBox.Show(strErrMsg); } }