shijuan_detail.aspx.cs

(开头部分) 4KB

这里只显示每个文件的开头 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 shijuan_detail : System.Web.UI.Page
{
    public string nshijuanbianhao,nxuanzetishu, nxuanzetifenzhi, nxuanzeti;
    public string npanduantishu, npanduantifenzhi, npanduanti;
    public string ntiankongtishu, ntiankongtifenzhi, ntiankongti;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {

            string sql;
            sql = "select * from shijuanshengcheng where id=" + Request.QueryString["id"].ToString().Trim();
            DataSet result = new DataSet();
            result = new Class1().hsggetdata(sql);
            if (result != null)
            {
                if (result.Tables[0].Rows.Count > 0)
                {

                    nshijuanbianhao = result.Tables[0].Rows[0]["shijuanbianhao"].ToString().Trim();
                    nxuanzetishu = result.Tables[0].Rows[0]["xuanzetishu"].ToString().Trim();
                    nxuanzetifenzhi = result.Tables[0].Rows[0]["xuanzetifenzhi"].ToString().Trim();
                    nxuanzeti = result.Tables[0].Rows[0]["xuanzeti"].ToString().Trim();
                    npanduantishu = result.Tables[0].Rows[0]["panduantishu"].ToString().Trim();
                    npanduantifenzhi = result.Tables[0].Rows[0]["panduantifenzhi"].ToString().Trim();
                    npanduanti = result.Tables[0].Rows[0]["panduanti"].ToString().Trim();
                    ntiankongtishu = result.Tables[0].Rows[0]["tiankongtishu"].ToString().Trim();
                    ntiankongtifenzhi = result.Tables[0].Rows[0]["tiankongtifenzhi"].ToString().Trim();
                    ntiankongti = result.Tables[0].Rows[0]["tiankongti"].ToString().Trim();
                }
            }

            sql = "select * from xuanzeti where id in (" + nxuanzeti + ") ";
            //DataSet result = new DataSet();
            result = new Class1().hsggetdata(sql);
            if (result != null)
            {
                if (result.Tables[0].Rows.Count > 0)
                {

                    DataList1.DataSource = result.Tables[0];
                    DataList1.DataBind();

                }
                else
                {
                    DataList1.DataSource = null;
                    DataList1.DataBind();
                }
后面还有 58 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。