Web/New_list.aspx.cs
(开头部分) 7KB这里只显示每个文件的开头 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.Web.Security;
using System.Threading;
public partial class New_list : System.Web.UI.Page
{
private static string type;
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (!IsPostBack)
{
type = Request.QueryString["type"];
if (type != null && type.Trim().Length != 0)
{
type = type.Substring(type.Trim().Length - 2);
string sql = "select count(*) from vaisi_newstype where id=" + type + "";
int sum = SqlHelper.GetScalar(sql);
if (sum == 1)
{
bindnewsbytype(type);
bindtype();
bindtop();
}
else
{
Response.Redirect("New_list.aspx");
}
}
else
{
bindnews();
bindtype();
bindtop();
}
}
}
catch (Exception)
{
Response.Redirect("New_list.aspx");
}
}
private void bindnewsbytype(string type)
{
try
{
string sql = "select * from vaisi_newslist where typeid=" + type + " order by dtime Desc";
IList<Vaisi_newslistModel> list = new List<Vaisi_newslistModel>();
DataTable table = SqlHelper.GetScalarListTable(sql);
foreach (DataRow row in table.Rows)
{
后面还有 159 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。