Esempio 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);
                }
            }
        }