protected void lnkBtnSearch2_Click(object sender, EventArgs e) { String selectedSpecialty = ddlSpecialties.SelectedValue.ToString(); String selectedSubSpecialty = ddlSubCategories.SelectedValue.ToString(); String selectedLastCategory = ddlLastCategory.SelectedValue.ToString(); using (GetServiceListByCategoryForWeb gslbcfw = new GetServiceListByCategoryForWeb()) { gslbcfw.Specialty = selectedSpecialty; gslbcfw.SubCategory = selectedSubSpecialty; gslbcfw.CategoryLvl4 = selectedLastCategory; gslbcfw.GetData(); if (!gslbcfw.HasErrors && gslbcfw.RowsBack > 0) { ThisSession.ServiceName = gslbcfw.ServiceName; ThisSession.SpecialtyID = gslbcfw.SpecialtyID; ThisSession.ServiceID = gslbcfw.ServiceID; } } ThisSession.ServiceEnteredFrom = "DropDowns"; // lam, 20130311, MSF-177, "Office Visit" should stay on "Find a Service" tab but not "Find a Doctor" if (selectedSpecialty.ToLower().Contains("office")) { ThisSession.Specialty = selectedSubSpecialty; // lam, 20130311, MSF-272 // lam, 20130319, MSF-177, "Office Visit" should stay on "Find a Service" tab but not "Find a Doctor" //Response.Redirect("results_specialty.aspx#tabcare"); Response.Redirect("results_care.aspx"); // ------------------------------------------------------------------------------------------------- } else { Response.Redirect("results_care.aspx"); } // old code -------------------------------------------------------------------------------------- //if (selectedSpecialty.ToLower().Contains("office")) // Response.Redirect("results_specialty.aspx#tabdoc"); //else // Response.Redirect("results_care.aspx#tabcare"); // ------------------------------------------------------------------------------------------------ }
protected void lnkBtnSearch2_Click(object sender, EventArgs e) { String selectedSpecialty = ddlSpecialties.SelectedValue.ToString(); String selectedSubSpecialty = ddlSubCategories.SelectedValue.ToString(); String selectedLastCategory = ddlLastCategory.SelectedValue.ToString(); using (GetServiceListByCategoryForWeb gslbcfw = new GetServiceListByCategoryForWeb()) { gslbcfw.Specialty = selectedSpecialty; gslbcfw.SubCategory = selectedSubSpecialty; gslbcfw.CategoryLvl4 = selectedLastCategory; gslbcfw.GetData(); if (!gslbcfw.HasErrors && gslbcfw.RowsBack > 0) { ThisSession.ServiceName = gslbcfw.ServiceName; ThisSession.SpecialtyID = gslbcfw.SpecialtyID; ThisSession.ServiceID = gslbcfw.ServiceID; } } ThisSession.ServiceEnteredFrom = "DropDowns"; // lam, 20130311, MSF-177, "Office Visit" should stay on "Find a Service" tab but not "Find a Doctor" if (selectedSpecialty.ToLower().Contains("office")) { ThisSession.Specialty = selectedSubSpecialty; // lam, 20130311, MSF-272 // lam, 20130319, MSF-177, "Office Visit" should stay on "Find a Service" tab but not "Find a Doctor" //Response.Redirect("results_specialty.aspx#tabcare"); Response.Redirect("results_care.aspx"); // ------------------------------------------------------------------------------------------------- } else Response.Redirect("results_care.aspx"); // old code -------------------------------------------------------------------------------------- //if (selectedSpecialty.ToLower().Contains("office")) // Response.Redirect("results_specialty.aspx#tabdoc"); //else // Response.Redirect("results_care.aspx#tabcare"); // ------------------------------------------------------------------------------------------------ }