123456789101112131415161718192021222324252627282930313233343536373839 |
- using System;
- using System.Collections.Generic;
- using CB.Entity;
- namespace CB.Web.Kjh
- {
- public partial class Header : System.Web.UI.UserControl
- {
- protected string gg;
- protected void Page_Load(object sender, EventArgs e)
- {
- DataInit();
- }
- private void DataInit()
- {
- IList<TopicInfo> list = CB.Data.Caches.GetHelpList(200,1);
- if (list!=null &&list.Count>0)
- {
- gg += "<span>公告:</span><a href=\"http://www.55128.cn/notice/article-" + list[0].Tid + ".htm\">" + list[0].Title + "</a>";
- }
- else
- {
- gg += "";
- }
- }
- /// <summary>
- /// 页面热点推荐内容
- /// </summary>
- /// <param name="id"></param>
- /// <returns></returns>
- public string GetHotContent(int id)
- {
- return CB.Data.Caches.GetRecommendContent(id);
- }
- }
- }
|