Example #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);

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