hczt/imagShow.aspx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
public partial class hczt_imagShow : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
[System.Web.Services.WebMethod]
public static string getPic()
{
DataBase db = new DataBase();
DataSet ds = new DataSet();
db.GetDataSet("select * from tb_ZTImage", ds);
string jsonimg = "[";
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
jsonimg += "{";
jsonimg += "title:'" + ds.Tables[0].Rows[i]["title"].ToString() + "',";
jsonimg += "imageUrl:'" + ds.Tables[0].Rows[i]["imageUrl"].ToString() + "',";
jsonimg += "Intro:'" + ds.Tables[0].Rows[i]["Intro"].ToString() + "',";
jsonimg += "C_date:'" + ds.Tables[0].Rows[i]["Intro"].ToString() + "'";
jsonimg += "},";
}
jsonimg += "]";
return jsonimg;
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
