//--------------------------------------------------------------------------------------
    private void LoadSubject()
    {
        uc_Left_Menu.LeftMenu leftmenu = new uc_Left_Menu.LeftMenu();
            DataSet dsSubject = new DataSet();
            DataSet dsSubjectItem = new DataSet();

            StringBuilder sb = new StringBuilder();
            //--
            int ContSelected = 1;
            int contSubject = 1;
            //--
            dsSubject = leftmenu.Get_LeftMenu_All_Subjects(intSite, intCont);
            //--

            //-- Begin Group Menu
            foreach (DataTable table in dsSubject.Tables)
            {
                foreach (DataRow row in table.Rows)
                {
                    sb.AppendLine("<li><a href=\"result.aspx?findopt1=" + row["id"].ToString() + "&am=0&asm=" + contSubject + "\" >" + row["cat"].ToString() + "</a>");
                    dsSubjectItem = leftmenu.Get_LeftMenu_All_SubSubjects(intSite, intCont, Convert.ToInt32(row["id"].ToString()));
                    foreach (DataTable stable in dsSubjectItem.Tables)
                    {
                        if (dsSubjectItem.Tables["table"].Rows.Count == 0)
                            break;
                        sb.AppendLine("<ul>");
                        foreach (DataRow srow in stable.Rows)
                        {
                sb.AppendLine("<li><a href=\"result.aspx?findopt2=" + srow["subcategoryid"] + "&am=0&asm=" + contSubject + "&nn=" + srow["subcategory"].ToString() + "\">" + srow["subcategory"].ToString() + "</a></li>");
                        }
                        sb.AppendLine("</ul>");
                    }
                    sb.AppendLine("</li>");
                    //sb.AppendLine("<li><a href=\"#\" class=\"" + (row["ContId"].ToString() == ContSelected.ToString() ? "current" : "") + "\">" + row["ContTitle"].ToString() + "</a></li>");
              contSubject++;
                }
            }
            //-- End Group Menu
            //--
            dsSubject.Dispose();
            dsSubjectItem.Dispose();

        PlaceHolder_Subjects.Controls.Add(new LiteralControl(sb.ToString()));
    }
    private StringBuilder LoadFinder()
    {
        DataSet dsFinder = new DataSet();
        DataSet dsFinderItem = new DataSet();
        uc_Left_Menu.LeftMenu leftmenu = new uc_Left_Menu.LeftMenu();
        StringBuilder sb = new StringBuilder();
        //--
        int ContSelected = 1;

        //-- Default Items --
        dsFinder = leftmenu.Get_LeftMenu_All_FinderDefault();
        //--
        foreach (DataTable table in dsFinder.Tables)
        {
            foreach (DataRow row in table.Rows)
            {
                if (Convert.ToInt32(row["finddefaid"].ToString()) != 1)
                {

                    if (Convert.ToInt32(row["finddefaid"].ToString()) == 2) ContSelected = 2;//Teaching
                    if (Convert.ToInt32(row["finddefaid"].ToString()) == 3) ContSelected = 3;//Grade
                    if (Convert.ToInt32(row["finddefaid"].ToString()) == 4) ContSelected = 4;//Platform
                    if (Convert.ToInt32(row["finddefaid"].ToString()) == 5) ContSelected = 5;//Publisher

                   if (ContSelected == 2)
                    { sb.AppendLine("<select  name='" + "findopt" + ContSelected.ToString() + "' style=\"width: 210px !important\" onchange=\"document.getElementById('optmeth').value=''; document.getElementById('nn').value='';\">"); }
                    else if(ContSelected == 5)
                    { sb.AppendLine("<select  name='" + "findopt" + ContSelected.ToString() + "' style=\"width: 120px !important; display:none;\">"); }
                    else
                    { sb.AppendLine("<select  name='" + "findopt" + ContSelected.ToString() + "' style=\"width: 120px !important\">"); }

                    if (row["findtitle"].ToString() == "Teaching Method")
                    {
                        string findopt2 = Request["findopt2"];
                        sb.AppendLine("<option selected value=\"" + findopt2 + "\">Method </option>");
                    }
                    else
                    {
                        if (ContSelected == 2)
                        {
                            string findopt2 = Request["findopt2"];
                            sb.AppendLine("<option selected value=\"" + findopt2 + "\" id='optmeth'>" + row["findtitle"].ToString() + "</option>");
                        }
                        else { sb.AppendLine("<option selected value=\"\">" + row["findtitle"].ToString() + "</option>"); }
                    }

                    dsFinderItem = leftmenu.Get_LeftMenu_All_FinderSubDefault(Convert.ToInt32(SiteId), Convert.ToInt32(ContentId), Convert.ToInt32(row["finddefaid"].ToString()));
                    string comma = "";
                    int cont = 0;
                    int cont2 = 0;
                    int maxcont = 0;
                    if (dsFinderItem != null)
                    {
                        maxcont = dsFinderItem.Tables[0].Rows.Count;
                    }
                    else {
                        maxcont = 0;
                    }

                    if (maxcont > 0)
                    {
                        foreach (DataTable stable in dsFinderItem.Tables)
                        {
                            foreach (DataRow srow in stable.Rows)
                            {
                                if (Request["findopt" + ContSelected.ToString()] == srow["id"].ToString())
                                {
                                    if (cont < maxcont)
                                    {
                                        comma = ",";
                                    }
                                    _sTextFinderRefine = _sTextFinderRefine + "" + comma + "\"" + srow["title"].ToString() + "\"";

                                    cont++;
                                }
                                sb.AppendLine("<option value=\"" + srow["id"].ToString() + "\"" + (Request["findopt" + ContSelected.ToString()] == srow["id"].ToString() ? "Selected" : "") + ">" + srow["title"].ToString() + "</option>");
                                cont++;

                            }
                        }
                        sb.AppendLine("</select>");
                    }
                }
                //SelCont++;
            }
        }
        dsFinder.Dispose();
        if (dsFinderItem != null)
            dsFinderItem.Dispose();

        return sb;
    }