MobilePhoneWeb/wangdianinfo3.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using 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 wangdianinfo3 : System.Web.UI.Page
{
public string strTime = "";
public string strInfo = "";
public string strTitle = "";
protected void Page_Load(object sender, EventArgs e)
{
ShowInfoString();
}
public void ShowInfoString()
{
string GID = Common.GetMes.GetRequestQuery(Request, "id");
Web_News wn = new Web_News();
//NID, IsTop, NTitle, NContext, NPicture, NCID, CreateBy, CreateDate, EditBy, EditDate
DataSet ds = wn.GetList(" NID=" + GID + "");
int num = ds.Tables[0].Rows.Count;
for (int i = 0; i < num; i++)
{
string ID = ds.Tables[0].Rows[i][0].ToString();
string NTitle = ds.Tables[0].Rows[i][2].ToString();
string Des = Server.HtmlDecode(ds.Tables[0].Rows[i][3].ToString());
string CDate = ds.Tables[0].Rows[i][7].ToString();
strTime = CDate;
strTitle = NTitle;
strInfo = Des;
}
}
public string GetTuiJianList()//获取推荐信息
{
string dem = "";
Web_News wn = new Web_News();
// NID, IsTop, NTitle, NContext, NPicture, NCID
DataSet ds = wn.GetTjNewsListByCName(6, " ClassName like '%网点%'");
int num = ds.Tables[0].Rows.Count;
for (int i = 0; i < num; i++)
{
string ID = ds.Tables[0].Rows[i][0].ToString();
string NTitle = ds.Tables[0].Rows[i][2].ToString();
string strDes = Server.HtmlDecode(ds.Tables[0].Rows[i][3].ToString());
strDes = regularExpressionsOfHTML(strDes);
string NPicture = ds.Tables[0].Rows[i][4].ToString();
if (strDes.Length > 30)
{
strDes = strDes.Substring(1, 30) + "...";
}
dem += " <li>";
dem += " <div class=\"imit_dt\"><a href=\"/wangdianinfo.aspx?id=" + ID + "\"><img src=\"/newsImg/" + NPicture + "\" /></a></div>";
dem += " <div class=\"imit_dd\">";
后面还有 17 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。