MobilePhoneWeb/index.aspx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using MyModels;
namespace MobilePhoneWeb
{
public partial class index :BaseContentPage
{
public string strTitle = "Zoe健管中心";
//public string strLogo = "";
protected void Page_Load(object sender, EventArgs e)
{
}
public string GetHotList()
{
string dem = "";
Web_News wn = new Web_News();
DataSet ds = wn.GetTopList(9,"");
//NID, IsTop, NTitle, NContext, NPicture, NCID, CreateBy, CreateDate, EditBy, EditDate
int num = ds.Tables[0].Rows.Count;
for (int i = 0; i < num; i++)
{
string ID = ds.Tables[0].Rows[i][0].ToString();
string IsTop = ds.Tables[0].Rows[i][1].ToString();
string NTitle = ds.Tables[0].Rows[i][2].ToString();
string NContext = ds.Tables[0].Rows[i][3].ToString();
string NPicture = ds.Tables[0].Rows[i][4].ToString();
string CreateDate = ds.Tables[0].Rows[i][7].ToString();
dem+="<li><a href=\"/newsinfo.aspx?id="+ID+"\" title=\""+NTitle+"\" >";
dem+=" <img src=\"/newsImg/"+NPicture+"\" />";
dem+="<br />"+NTitle+"</a></li>";
}
return dem;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。