示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            We7MenuControl menu = new We7MenuControl();

            Response.Write(menu.AllMenuHtml());
            Response.End();
        }
示例#2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            We7MenuControl menu = new We7MenuControl();

            //检查
            if (menu.AllShowMemuItem.Count == 0)
            {
                lock (syncRoot)
                {
                    if (menu.AllShowMemuItem.Count == 0)
                    {
                        // 无Menu数据则进行SQL执行
                        BaseConfigInfo bci = BaseConfigs.GetBaseConfig();
                        if (bci.DBType != "" && bci.DBConnectionString != "")
                        {
                            Installer.ExcuteSQLGroup(bci);
                            ApplicationHelper.ResetApplication();
                        }
                    }
                }
            }
            Response.Write(menu.AllMenuHtml());
            Response.End();
        }