@if (topinfotoplist != null && topinfotoplist.Rows.Count > 0) { for (int i = 0; i < topinfotoplist.Rows.Count; i++) { @(topinfotoplist.Rows[i]["title"].ToString().Length > 12 ? topinfotoplist.Rows[i]["title"].ToString().Substring(0, 12) : topinfotoplist.Rows[i]["title"].ToString()) } }
  • 新闻
  • 公告
  • 活动
  • 攻略
  • @if (newsinfolist != null && newsinfolist.Rows.Count > 0) { for (int i = 0; i < newsinfolist.Rows.Count; i++) {
  • @(newsinfolist.Rows[i]["title"].ToString().Length > 30 ? newsinfolist.Rows[i]["title"].ToString().Substring(0, 30) + ".." : newsinfolist.Rows[i]["title"].ToString())
  • } }
    @if (gginfolist != null && gginfolist.Rows.Count > 0) { for (int i = 0; i < gginfolist.Rows.Count; i++) {
  • @(gginfolist.Rows[i]["title"].ToString().Length > 30 ? gginfolist.Rows[i]["title"].ToString().Substring(0, 30) + ".." : gginfolist.Rows[i]["title"].ToString())
  • } }
    @if (hdinfolist != null && hdinfolist.Rows.Count > 0) { for (int i = 0; i < hdinfolist.Rows.Count; i++) {
  • @(hdinfolist.Rows[i]["title"].ToString().Length > 30 ? hdinfolist.Rows[i]["title"].ToString().Substring(0, 30) + ".." : hdinfolist.Rows[i]["title"].ToString())
  • } }
    @if (glinfolist != null && glinfolist.Rows.Count > 0) { for (int i = 0; i < glinfolist.Rows.Count; i++) {
  • @(glinfolist.Rows[i]["title"].ToString().Length > 30 ? glinfolist.Rows[i]["title"].ToString().Substring(0, 30) + ".." : glinfolist.Rows[i]["title"].ToString())
  • } }