Ejemplo n.º 1
0
        private PageView BuildPageViewContents(int gId)
        {
            PageView pageView = new PageView();


            StringBuilder returnString = new StringBuilder();
            string str = "";

            CateNewsBSO catenewsBSO = new CateNewsBSO();

            CateNewsGroupBSO catenewsGroupBSO = new CateNewsGroupBSO();
            CateNewsGroup cateGroup = catenewsGroupBSO.GetCateNewsGroupByGroupCate(gId);
            if (cateGroup.IsPage == true)
                catenewsBSO.MenuJqueryCateGroupUrl(returnString, 0, Language.language, "", gId, ResolveUrl("~/") + "CategoryPages/" + gId + "/", "/default.aspx");
            else
                catenewsBSO.MenuJqueryCateGroupUrl(returnString, 0, Language.language, "", gId, ResolveUrl("~/") + "Category/" + gId + "/", "/default.aspx");

            //str = "<div id='menu'>" + returnString.ToString() + "</div>";

            str = "<div style='position:absolute;left:" + cateGroup.Position + "px;white-space: nowrap;'><div id='menu'>" + returnString.ToString() + "</div></div>";


            pageView.Controls.Add(new LiteralControl(str));


            return pageView;
        }