protected void ddlSubCategories_SelectedIndexChanged(object sender, EventArgs e)
        {
            String selectedSpecialty = ddlSpecialties.SelectedValue.ToString();
            String selectedSubSpecialty = ddlSubCategories.SelectedValue.ToString();

            if (selectedSubSpecialty.StartsWith("Select"))//"Select from list:"
            {
                ddlLastCategory.Visible = false;
            }
            else
            {
                using (GetLastCategoriesForWeb glcfw = new GetLastCategoriesForWeb())
                {
                    glcfw.Specialty = selectedSpecialty;
                    glcfw.SubCategory = selectedSubSpecialty;
                    glcfw.GetFrontEndData();
                    if (!glcfw.HasErrors && glcfw.RowsBack > 0)
                    {
                        ddlLastCategory.DataSource = glcfw.Categories;
                        ddlLastCategory.DataBind();
                        ddlLastCategory.Items.Insert(0, "Select from list:");
                        ddlLastCategory.Visible = true;
                    }
                    lnkBtnSearch2.Visible = (!glcfw.HasErrors && glcfw.RowsBack == 0);
                }
            }
        }
        protected void ddlSubCategories_SelectedIndexChanged(object sender, EventArgs e)
        {
            String selectedSpecialty    = ddlSpecialties.SelectedValue.ToString();
            String selectedSubSpecialty = ddlSubCategories.SelectedValue.ToString();

            if (selectedSubSpecialty.StartsWith("Select"))//"Select from list:"
            {
                ddlLastCategory.Visible = false;
            }
            else
            {
                using (GetLastCategoriesForWeb glcfw = new GetLastCategoriesForWeb())
                {
                    glcfw.Specialty   = selectedSpecialty;
                    glcfw.SubCategory = selectedSubSpecialty;
                    glcfw.GetFrontEndData();
                    if (!glcfw.HasErrors && glcfw.RowsBack > 0)
                    {
                        ddlLastCategory.DataSource = glcfw.Categories;
                        ddlLastCategory.DataBind();
                        ddlLastCategory.Items.Insert(0, "Select from list:");
                        ddlLastCategory.Visible = true;
                    }
                    lnkBtnSearch2.Visible = (!glcfw.HasErrors && glcfw.RowsBack == 0);
                }
            }
        }