shijuanshengcheng_add.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
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;
public partial class shijuanshengcheng_add : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
zhangjie.Items.Add("所有");
zhangjie.Items.Add("第一章");
zhangjie.Items.Add("第二章");
zhangjie.Items.Add("第三章");
}
}
protected void Button1_Click(object sender, EventArgs e)
{
string sql,nxuanzeti,nzhangjie,npanduanti,ntiankongti;
nxuanzeti = "";
npanduanti = "";
ntiankongti = "";
nzhangjie = zhangjie.Text.ToString().Trim();
int nxuanzetishu = int.Parse(xuanzetishu.Text.ToString().Trim());
int npanduantishu = int.Parse(panduantishu.Text.ToString().Trim());
int ntiankongtishu = int.Parse(tiankongtishu.Text.ToString().Trim());
int i = 0;
sql = "select top " + nxuanzetishu + " id from xuanzeti where 1=1";
if (nzhangjie != "所有")
{
sql = sql + " and zhangjie='"+nzhangjie+"'";
}
sql=sql+" order by newid()";
DataSet result2 = new DataSet();
result2 = new Class1().hsggetdata(sql);
if (result2 != null)
{
for (i = 0; i < nxuanzetishu; i++)
{
nxuanzeti = nxuanzeti + result2.Tables[0].Rows[i][0].ToString().Trim() + ",";
}
nxuanzeti = nxuanzeti.Substring(0, nxuanzeti.Length - 1);
}
sql = "select top " + npanduantishu + " id from panduanti where 1=1";
if (nzhangjie != "所有")
{
sql = sql + " and zhangjie='" + nzhangjie + "'";
}
sql = sql + " order by newid()";
result2 = new Class1().hsggetdata(sql);
if (result2 != null)
后面还有 40 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
