Esempio n. 1
0
        protected void Session_Start(object sender, EventArgs e)
        {
            Application["CurrentUsers"] = Convert.ToInt32(Application["CurrentUsers"]) + 1;
            long SiteHitCounter = 100;

            WebHitCounter webhitcounter = new WebHitCounter();
            SiteHitCounter = webhitcounter.GetHitCounter();

            webhitcounter.UpdateHitCounter(SiteHitCounter + 1);
        }
Esempio n. 2
0
        void Session_Start(object sender, EventArgs e)
        {
            // Code that runs when a new session is started
            Application["CurrentUsers"] = Convert.ToInt32(Application["CurrentUsers"]) + 1;
            long siteHitCounter = 100;

            WebHitCounter webhitcounter = new WebHitCounter();
            siteHitCounter = webhitcounter.GetHitCounter();

            webhitcounter.UpdateHitCounter(siteHitCounter + 1);
        }
Esempio n. 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            #region Config
            if (Session["Lang"] == null)
                Session["Lang"] = Language.language;
            Language.lang = Session["Lang"].ToString();
            ConfigBSO configBSO = new ConfigBSO();
            Config config = configBSO.GetAllConfig(Language.lang);
            Page.Title = config.Titleweb;
            if (Session["HitCounter"] == null)
            {
                long SiteHitCounter = 100;
                WebHitCounter webhitcounter = new WebHitCounter();
                SiteHitCounter = webhitcounter.GetHitCounter();

                webhitcounter.UpdateHitCounter(SiteHitCounter + 1);
                Session["HitCounter"] = Convert.ToString(SiteHitCounter + 1);
            }
            #endregion

            switch (Go.ToString())
            {
                case "listalbums":
                    phLeft.Controls.Add(LoadControl("Client/Modules/Albums/AlbumsList.ascx"));
                    break;
                case "listvideo":
                    phLeft.Controls.Add(LoadControl("Client/Modules/Video/VideoList.ascx"));
                    break;
                case "faq":
                    phLeft.Controls.Add(LoadControl("Client/Modules/Faq/Faq.ascx"));
                    break;
                case "questions":
                    phLeft.Controls.Add(LoadControl("Client/Modules/Faq/Question.ascx"));
                    break;
                case "medidangky":
                    phLeft.Controls.Add(LoadControl("Client/Modules/DangKy_TraCuu/MeDi_PhieuXetNghiem.ascx"));
                    break;
                case "faqdetail":
                    phLeft.Controls.Add(LoadControl("Client/Modules/Faq/FaqDetail.ascx"));
                    break;
                case "contact":
                    phLeft.Controls.Add(LoadControl("Client/Modules/Contact/Contact.ascx"));
                    break;
                case "contactsucceed":
                    phLeft.Controls.Add(LoadControl("Client/Modules/Contact/ContactSucceed.ascx"));
                    break;
                case "fullnewsg":
                    switch (g.ToString())
                    {
                        case "4":
                            phLeft.Controls.Add(LoadControl("Client/Modules/Official/OfficialListGroup.ascx"));
                            break;
                        default:
                            phLeft.Controls.Add(LoadControl("Client/Modules/News/NewsgListGroup.ascx"));
                            break;
                    }
                    break;
                case  "mediremoteheath":
                    phLeft.Controls.Add(LoadControl("Client/Modules/Remoteheath/MeDi_remoteheath.ascx"));
                    break;
                case "catenewsg":
                    switch (g.ToString())
                    {
                        case "4":
                            phLeft.Controls.Add(LoadControl("Client/Modules/Official/OfficialList.ascx"));
                            break;
                        case"2":
                            phLeft.Controls.Add(LoadControl("Client/Modules/DangKy_TraCuu/MeDi_TraCuu.ascx"));
                            break;

                        default:
                            phLeft.Controls.Add(LoadControl("Client/Modules/News/NewsgList.ascx"));
                            break;
                    }
                    break;
                case "newsg":
                    switch (g.ToString())
                    {
                        case "4":
                            phLeft.Controls.Add(LoadControl("Client/Modules/Official/OfficialDetail.ascx"));
                            break;
                        default:
                            phLeft.Controls.Add(LoadControl("Client/Modules/News/NewsgDetail.ascx"));
                            break;
                    }
                    break;
                default:
                    phLeft.Controls.Add(LoadControl("Client/MainHomePage.ascx"));
                    phRight.Visible = false;
                    break;
            }

            if (!String.IsNullOrEmpty(Go))
                phRight.Controls.Add(LoadControl("Client/PanelRightModules.ascx"));
        }
Esempio n. 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["Lang"] == null)
                Session["Lang"] = "vi-VN";
            Language.lang = Session["Lang"].ToString();
            ConfigBSO configBSO = new ConfigBSO();
            Config config = configBSO.GetAllConfig(Language.lang);
            Page.Title = config.Titleweb;
            if (Session["HitCounter"] == null)
            {
                long SiteHitCounter = 100;
                WebHitCounter webhitcounter = new WebHitCounter();
                SiteHitCounter = webhitcounter.GetHitCounter();

                webhitcounter.UpdateHitCounter(SiteHitCounter + 1);
                Session["HitCounter"] = Convert.ToString(SiteHitCounter + 1);
            }

            switch (Go.ToString())
            {
                case "albums":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Albums/AlbumsList.ascx"));
                    break;
                case "video":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Video/VideoList.ascx"));
                    break;
                case "question":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Faq/Question.ascx"));
                    break;
                case "faq":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Faq/Faq.ascx"));
                    break;
                case "faqdetail":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Faq/FaqDetail.ascx"));
                    break;
                case "sendemailnewsg":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/News/SendEmailNewsg.ascx"));
                    break;
                case "search":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Search/SearchResult.ascx"));
                    break;
                case "singlepage":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/News/SinglePageDetail.ascx"));
                    break;
                case "contact":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Contact/Contact.ascx"));
                    break;
                case "succeed":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Contact/ContactSucceed.ascx"));
                    break;
                case "sitemap":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/SiteMap/Sitemap.ascx"));
                    break;
                case "hrms":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/HRMS/HRMSView.ascx"));
                    break;
                case "phonebook":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/PhoneBook/ListPhoneBook.ascx"));
                    break;

                case "fullnews":
                    switch (g.ToString())
                    {
                        case "4":
                            PlaceHolder.Controls.Add(LoadControl("Client/Modules/Official/OfficialListGroup.ascx"));
                            break;
                        case "8":
                            PlaceHolder.Controls.Add(LoadControl("Client/Modules/News/NewsList_FromICON.ascx"));
                            break;
                        case "0":
                            PlaceHolder.Controls.Add(LoadControl("Client/Modules/News/NewsList_FromICON.ascx"));
                            break;
                        //case "2":
                        //    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Company/CompanyList.ascx"));
                        //    break;
                        default:
                            PlaceHolder.Controls.Add(LoadControl("Client/Modules/News/NewsgListGroup.ascx"));
                            break;
                    }
                    break;
                case "category":
                    switch (g.ToString())
                    {
                        case "4":
                            PlaceHolder.Controls.Add(LoadControl("Client/Modules/Official/OfficialList.ascx"));
                            break;
                        //case "2":
                        //    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Company/CompanyList.ascx"));
                        //    break;
                        default:
                            PlaceHolder.Controls.Add(LoadControl("Client/Modules/News/NewsgList.ascx"));
                            break;
                    }
                    break;
                case "news":
                    switch (g.ToString())
                    {
                        case "4":
                            PlaceHolder.Controls.Add(LoadControl("Client/Modules/Official/OfficialDetail.ascx"));
                            break;
                        default:
                            PlaceHolder.Controls.Add(LoadControl("Client/Modules/News/NewsgDetail.ascx"));
                            break;
                    }
                    break;

                case "fullpagesg":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Company/CompanyListGroup.ascx"));
                    break;

                case "catepagesg":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Company/CompanyListGroup.ascx"));
                    break;

                case "pagesg":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Company/CompanyDetailGroup.ascx"));
                    break;

                default:
                    PlaceHolder.Controls.Add(LoadControl("Client/MainHomePage.ascx"));
                    break;
            }
        }