protected void LoadGeneric()
    {
        pageType = "a";
        MainContentGeneric generic_A = new MainContentGeneric();
        DataSet dsgeneric_A = new DataSet();
        StringBuilder sb = new StringBuilder();
        //--Bread
        Main_MasterPage main = (Main_MasterPage)Page.Master;
        if (Request["TypeGen"] != null)
        {
            main._site_breadLink += "<li><a href=resourcecenter.aspx?id=0 onClick=\"return true;\">" + "Resource Center" + "</a></li>";
        }
        else {
            main._site_breadLink += "<li><a href=\"#\" onClick=\"return false;\">" + "About " + SiteConstants.SiteName + "</a></li>";
        }
        //--
        dsgeneric_A = generic_A.getAllGenericByTypeId(iGeneId);
        foreach (DataTable table in dsgeneric_A.Tables)
        {
            foreach (DataRow row in table.Rows)
            {
                string path = "";
                if(!Regex.IsMatch(row["GeneAImage"].ToString(), @"^(ft|htt)p(s?)://([\w-]+\.)+[\w-]+(/[\w- ./]*)+\.(?:gif|jpg|jpeg|png|GIF|JPEG|JPG|PNG|Gif|Jpg|Jpeg|Png)$"))
                {
                    path = Global.globalSiteImagesPath + "/";
                }
                if (row["GeneAImage"].ToString() != ""){
                    sb.AppendLine("<div id=\"boxContImage\"  style=\"width:200px; height:200px; float:right; margin:10px;\">");
                    sb.AppendLine("<img id=\"images1\" style=\"width: 200px; height:200px;\" src=\"" + path + row["GeneAImage"].ToString() + "\" alt=\"" + row["GeneATitle"].ToString() + "\" />"); //onload=\"(document.getElementById('boxContImage'),this)\"
                    sb.AppendLine("</div>");
                }

                main._site_breadLink += "<li> <a href=# onClick=\"return false;\"><strong>" + row["GeneATitle"].ToString() + "</strong></a></li>";
                pageName = row["GeneATitle"].ToString();
                main.pageTitleBar = pageName + " - " + main.pageTitleBar;
                    sb.AppendLine("<div class=\"mainAbout\">");
                    sb.AppendLine("<h1>" + row["GeneATitle"].ToString() + "</h1>");
                    sb.AppendLine(row["GeneAContent"].ToString());
                sb.AppendLine("</div>");

                //--
                if (row["GeneALink"].ToString() != "" && row["GeneALink2"].ToString() != "")
                {
                    sb.AppendLine("<div>");

                        sb.AppendLine("<div class=\"btnText\">");
                            if (Convert.ToInt32(row["LinkTypeId"].ToString()) == 1) sb.AppendLine("<a href=\"" + row["GeneALink"].ToString() + "\" target=\"_blank\">");
                            else sb.AppendLine("<a href=\"" + row["GeneALink"].ToString() + "\">");
                                sb.AppendLine("<div class=\"btnTextLeft\"></div>");
                                sb.AppendLine("<div class=\"btnTextMain\"><p>" + row["GeneALinkTitle"].ToString() + "</p></div>");
                                sb.AppendLine(" <div class=\"btnTextRight\"></div>");
                                sb.AppendLine("<div class=\"clear\"></div>");
                            sb.AppendLine("</a>");
                        sb.AppendLine("</div>");

                        sb.AppendLine("<div class=\"btnText\">");
                            if (Convert.ToInt32(row["LinkTypeId2"].ToString()) == 1) sb.AppendLine("<a href=\"" + row["GeneALink2"].ToString() + "\" target=\"_blank\">");
                            else sb.AppendLine("<a href=\"" + row["GeneALink2"].ToString() + "\">");
                                sb.AppendLine("<div class=\"btnTextLeft\"></div>");
                                sb.AppendLine("<div class=\"btnTextMain\"><p>" + row["GeneALink2Title"].ToString() + "</p></div>");
                                sb.AppendLine(" <div class=\"btnTextRight\"></div>");
                                sb.AppendLine("<div class=\"clear\"></div>");
                            sb.AppendLine("</a>");
                        sb.AppendLine("</div>");

                    sb.AppendLine("</div>");

                }
                else if (row["GeneALink"].ToString() != "")
                {
                    sb.AppendLine("<div>");

                        sb.AppendLine("<div class=\"btnText\">");
                            if (Convert.ToInt32(row["LinkTypeId"].ToString()) == 1) sb.AppendLine("<a href=\"" + row["GeneALink"].ToString() + "\" target=\"_blank\">");
                            else sb.AppendLine("<a href=\"" + row["GeneALink"].ToString() + "\">");
                                sb.AppendLine("<div class=\"btnTextLeft\"></div>");
                                sb.AppendLine("<div class=\"btnTextMain\"><p>" + row["GeneALinkTitle"].ToString() + "</p></div>");
                                sb.AppendLine(" <div class=\"btnTextRight\"></div>");
                                sb.AppendLine("<div class=\"clear\"></div>");
                            sb.AppendLine("</a>");
                        sb.AppendLine("</div>");

                    sb.AppendLine("</div>");
                }
                else if (row["GeneALink2"].ToString() != "")
                {
                    sb.AppendLine("<a href=\"" + row["GeneALink2"].ToString() + "\">");
                        if (Convert.ToInt32(row["LinkTypeId2"].ToString()) == 1) sb.AppendLine("<a href=\"" + row["GeneALink2"].ToString() + "\" target=\"_blank\">");
                        else sb.AppendLine("<a href=\"" + row["GeneALink2"].ToString() + "\">");
                            sb.AppendLine("<div class=\"btnTextLeft\"></div>");
                            sb.AppendLine("<div class=\"btnTextMain\"><p>" + row["GeneALink2Title"].ToString() + "</p></div>");
                            sb.AppendLine(" <div class=\"btnTextRight\"></div>");
                            sb.AppendLine("<div class=\"clear\"></div>");
                        sb.AppendLine("</div>");
                    sb.AppendLine("</a>");
                }
                //--

            }
        }

        PlaceHolder_Generic_A.Controls.Add(new LiteralControl(sb.ToString()));

        sb = null;
        dsgeneric_A = null;
        generic_A = null;
    }