Exemplo n.º 1
0
    /// <summary>
    /// 导航
    /// </summary>
    void BindNav()
    {
        List <string> lxs = new List <string>()
        {
            "东方玄幻",

            "武侠仙侠",

            "都市言情",

            "历史军事",

            "科幻灵异",

            "网游竞技",
        };

        Nav.DataSource = Tygdb.分类表.ToList().Take(7)
                         //.Where(p => lxs.Contains(p.分类标识))
        ;
        Nav.DataBind();
    }