using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CB.Data; using CB.Entity; namespace CB.TVUCenter.Web { public partial class install : System.Web.UI.Page { protected StringBuilder TvQuestion = new StringBuilder(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { InitData(); } } /// /// 生成常见问题 /// private void InitData() { int Record = 0; List lists = TopicService.ToPaging("207", 10, 1, out Record, "Tid ASC").ToList(); if (lists == null) return; for (int i = 0; i < lists.Count; i++) { string question = @"
  • 3) ? "style='display:none;'" : "") + @"> " + (i+1).ToString()+"、"+lists[i].Title + @"

    " + lists[i].Context + "

  • "; TvQuestion.Append(question); } } } }