Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            WebSite oSite    = new WebSite();
            Service oService = new Service();

            sHTMLMenu = oSite.GetHTMLMenu(int.Parse(oService.getKeyFromConfigFile("MENU")), 1, this.Page.AppRelativeVirtualPath.Substring(2).ToLower());

            sHTMLFooter = oSite.GetHTMLFooter(int.Parse(oService.getKeyFromConfigFile("FOOTER")), 1);

            sHTMLLinkArtigoPoliticaPrivacidade = oSite.GetHTMLLinkArtigoClassificado(int.Parse(oService.getKeyFromConfigFile("FOOTER")), 1);



            string cid = Request.QueryString["cid"];
            int    outcid;

            //Service oService = new Service();
            if (cid != null)
            {
                if (int.TryParse(cid, out outcid))
                {
                    sHTMLListaArtigo = oSite.GetHTMLListaArtigo(outcid, 1);
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            WebSite oSite    = new WebSite();
            Service oService = new Service();

            sHTMLMenu         = oSite.GetHTMLMenu(int.Parse(oService.getKeyFromConfigFile("MENU")), 1, this.Page.AppRelativeVirtualPath.Substring(2).ToLower());
            sHTMLGruposcorais = oSite.GetHTMLGruposcorais(int.Parse(oService.getKeyFromConfigFile("GRUPOSCORAIS")), 1);
            sHTMLFooter       = oSite.GetHTMLFooter(int.Parse(oService.getKeyFromConfigFile("FOOTER")), 1);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            WebSite oSite    = new WebSite();
            Service oService = new Service();

            sHTMLMenu      = oSite.GetHTMLMenu(int.Parse(oService.getKeyFromConfigFile("MENU")), 1, this.Page.AppRelativeVirtualPath.Substring(2).ToLower());
            sHTMLBanner    = oSite.GetHTMLBanner(int.Parse(oService.getKeyFromConfigFile("BANNERS")), 1);
            sHTMLFooter    = oSite.GetHTMLFooter(int.Parse(oService.getKeyFromConfigFile("FOOTER")), 1);
            sHTMLContactos = oSite.GetHTMLContacte_nos(int.Parse(oService.getKeyFromConfigFile("CONTACTO")), 1);
        }
Exemplo n.º 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            WebSite oSite    = new WebSite();
            Service oService = new Service();

            sHTMLMenu = oSite.GetHTMLMenu(int.Parse(oService.getKeyFromConfigFile("MENU")), 1, this.Page.AppRelativeVirtualPath.Substring(2).ToLower());

            sHTMLFooter = oSite.GetHTMLFooter(int.Parse(oService.getKeyFromConfigFile("FOOTER")), 1);

            sHTMLLinkArtigoPoliticaPrivacidade = oSite.GetHTMLLinkArtigoClassificado(int.Parse(oService.getKeyFromConfigFile("FOOTER")), 1);
        }
Exemplo n.º 5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //Muda a tua vida Deus vai te abençoar
            WebSite oSite    = new WebSite();
            Service oService = new Service();

            sHTMLMenu = oSite.GetHTMLMenu(int.Parse(oService.getKeyFromConfigFile("MENU")), 1, this.Page.AppRelativeVirtualPath.Substring(2).ToLower());

            sHTMLBanner            = oSite.GetHTMLBanner(int.Parse(oService.getKeyFromConfigFile("BANNERS")), 1);
            sHTMLBanner2           = oSite.GetHTMLBanner2(int.Parse(oService.getKeyFromConfigFile("BANNERS2")), 1);
            sHTMLBanner3           = oSite.GetHTMLBanner3(int.Parse(oService.getKeyFromConfigFile("BANNERS3")), 1);
            sHTMLDestaques1        = oSite.GetHTMLDestaques1(int.Parse(oService.getKeyFromConfigFile("DESTAQUES1")), 1);
            sHTMLDestaques2        = oSite.GetHTMLDestaques2(int.Parse(oService.getKeyFromConfigFile("DESTAQUES2")), 1);
            sHTMLDestaques3        = oSite.GetHTMLDestaques3(int.Parse(oService.getKeyFromConfigFile("DESTAQUES3")), 1);
            sHTMLDestaques4        = oSite.GetHTMLDestaques4(int.Parse(oService.getKeyFromConfigFile("DESTAQUES4")), 1);
            sHTMLDestaques5        = oSite.GetHTMLDestaques5(int.Parse(oService.getKeyFromConfigFile("DESTAQUES5")), 1);
            sHTMLDestaques6        = oSite.GetHTMLDestaques6(int.Parse(oService.getKeyFromConfigFile("DESTAQUES6")), 1);
            sHTMLNoticiasRecentes  = oSite.GetHTMLNoticiasRecentes(int.Parse(oService.getKeyFromConfigFile("NOTICIASRECENTES")), 1);
            sHTMLsitesRelacionados = oSite.GetHTMLSitesrelacionados(int.Parse(oService.getKeyFromConfigFile("SITESRELACIONADOS")), 1);
            sHTMLFooter            = oSite.GetHTMLFooter(int.Parse(oService.getKeyFromConfigFile("FOOTER")), 1);
        }
Exemplo n.º 6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            WebSite oSite    = new WebSite();
            Service oService = new Service();


            sHTMLMenu = oSite.GetHTMLMenu(int.Parse(oService.getKeyFromConfigFile("MENU")), 1, this.Page.AppRelativeVirtualPath.Substring(2).ToLower());


            sHTMLFooter = oSite.GetHTMLFooter(int.Parse(oService.getKeyFromConfigFile("FOOTER")), 1);

            string aid = Request.QueryString["aid"];
            int    outaid;

            //Service oService = new Service();
            if (aid != null)
            {
                if (int.TryParse(aid, out outaid))
                {
                    sHTMLArtigo = oSite.GetHTMLDetalheartigo(outaid, 1);
                }
            }
        }