Default.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;
public partial class _Default : System.Web.UI.Page
{
public string title;
public int indexsun;
OleDbConnection conn = dbcon.createconnection();
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
conn.Open();
OleDbCommand com = new OleDbCommand("select * from config", conn);
OleDbDataReader dr = com.ExecuteReader();
if (dr.Read())
{
labgongao.Text = dr["gongao"].ToString();
title = dr["webname"].ToString();
indexsun = Convert.ToInt32(dr["indexsun"].ToString());
labkf.Text = dr["kf"].ToString().Replace("\n", "<BR>").Replace("<","<").Replace(">",">").Replace("&","&");
//labhanqing.Text = dr["hanqing"].ToString().Replace("\n", "<BR>").Replace(" ", " ");
}
this.Listgame();
this.Listnews();
this.Listgamenews();
conn.Close();
}
}
private void Listgame()
{
OleDbCommand com =new OleDbCommand("select top "+indexsun+" * from anclass where status='开放' order by orderid", conn);
OleDbDataReader dr = com.ExecuteReader();
labgame.Text="<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
int i = 1;
while (dr.Read())
{
labgame.Text += "<td width='145' height='85' align='center'>";
if(dr["img"].ToString()=="")
{
labgame.Text += "<table border='0' cellspacing='0' cellpadding='0'><tr><td width='145' height='105' background='images/no.gif' align='center'><a href='gamedd.aspx?id=" + dr["anclassid"].ToString() + "' >" + dr["anclass"].ToString() + "</a></td></tr></table>";
}
else
{
labgame.Text += "<a href='gamedd.aspx?id=" + dr["anclassid"].ToString() + "' ><img border='0' src=" + dr["img"].ToString() + " width='140' height='80'></a>";
}
labgame.Text += "</td>";
if (i == 3)
后面还有 39 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
