//manages switch step - data, display, db session init, etc private void manageSwitchStep() { switch (currentStep) { // init db session case 1: SC_ssInitSession ssInit = new SC_ssInitSession(); ssInit.CCHID = this.PrimaryCCHID; ssInit.Category = this.category; ssInit.GetData(); if (ssInit.dbSessionData.Rows.Count > 0) { dbSessionID = Convert.ToInt32(ssInit.dbSessionData.Rows[0]["mbrSessID"]); HttpContext.Current.Session["dbSwitchStepSessionID"] = dbSessionID; } else { dbSessionID = 0; HttpContext.Current.Session["dbSwitchStepSessionID"] = dbSessionID; } break; default: dbSessionID = Convert.ToInt32(HttpContext.Current.Session["dbSwitchStepSessionID"]); break; } }