private void genervideoclass(videoclass videoclass)
    {
        StringBuilder sb = new StringBuilder();
        generSB(videoclass.id, videoclass.classname, sb);
        List<videoclass> nclist = videologic.GetList(videoclass.id);
        foreach (videoclass item in nclist)
        {
            generSB(item.id, item.classname, sb, false);

        }
        OutStr = sb.ToString();
    }
 public string getVideoNav()
 {
     string res = string.Empty;
     string lb = Request.QueryString.Get("sid");
     string newsid = Request.QueryString.Get("id");
     videoManager mgr = new videoManager();
     if (!string.IsNullOrEmpty(newsid))
     {
         WhereClip where = new WhereClip();
         where = where && video._.id == newsid;
         video model = new video();
         model = mgr.GetvideoItemById(where);
         if (model != null)
         {
             lb = model.sid.ToString();
         }
     }
     if (!string.IsNullOrEmpty(lb))
     {
         videoclass modelclass = new videoclass();
         WhereClip where2 = new WhereClip();
         where2 = where2 && videoclass._.id == lb;
         modelclass = mgr.GetItemById(where2);
         res = string.Format(@"<a href='Category.aspx?type=video'>视频频道</a>&nbsp;&gt;&nbsp;&nbsp;<a href='Category.aspx?sid={0}&type=video'>{1}</a>", modelclass.id, modelclass.classname);
     }
     else
     {
         res = "<a href='Category.aspx?type=video'>视频频道</a>";
     }
     return res;
 }