protected void LoadAdds()
    {
        Header head = new Header();
        DataSet dsAdds = new DataSet();
        StringBuilder sb = new StringBuilder();
        dsAdds = head.getAllAdds();
        int cont = 0;
        sb.AppendLine("<div id=\"bread\">");
        foreach (DataTable table in dsAdds.Tables)
        {
            foreach (DataRow row in table.Rows)
            {
                if (cont >= 1) sb.AppendLine("<div class=\"breadDivider\"></div>");
                sb.AppendLine("<div class=\"breadAdd\"><a href=\"Adds.aspx?id=" + row["AddsId"].ToString() + "\"><img src=\"" + Global.globalSiteImagesPath + "/" + row["AddsImage"].ToString() + "\" border=0 /></a></div>");
                cont++;

            }
        }
        sb.AppendLine("</div>");
        PlaceHolder_bread.Controls.Add(new LiteralControl(sb.ToString()));
        sb = null;
    }
    protected void LoadAdds()
    {
        Header head = new Header();
        DataSet dsAdds = new DataSet();
        StringBuilder sb = new StringBuilder();
        dsAdds = head.getAllAdds();
        int cont = 0;
        sb.AppendLine("<div id=\"bread\">");
        // print the adds
        string path = "";

        foreach (DataTable table in dsAdds.Tables)
        {
            foreach (DataRow row in table.Rows)
            {
                if (!Regex.IsMatch(row["AddsImage"].ToString(), @"^(ft|htt)p(s?)://([\w-]+\.)+[\w-]+(/[\w- ./]*)+\.(?:gif|jpg|jpeg|png|GIF|JPEG|JPG|PNG|Gif|Jpg|Jpeg|Png)$"))
                {
                    path = Global.globalSiteImagesPath + "/";
                }
                else
                {
                    path = "";
                }
                if (cont >= 1) sb.AppendLine("<div class=\"breadDivider\"></div>");
                sb.AppendLine("<div class=\"breadAdd\"><a href=\"" + row["AddsLink"].ToString() + "\"><img src=\"" + path + row["AddsImage"].ToString() + "\" border=0 /></a></div>");
                cont++;
            }
        }
        sb.AppendLine("</div>");
        PlaceHolder_bread.Controls.Add(new LiteralControl(sb.ToString()));
        sb = null;
    }