yongyaoguanli_updt.aspx.cs

(开头部分) 2KB

这里只显示每个文件的开头 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 yongyaoguanli_updt : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

       
   
        if (!IsPostBack)
        {

            string sql;
            sql = "select * from yaopinxinxi order by id desc";
            DataSet result2 = new DataSet();
            result2 = new Class1().hsggetdata(sql);
            if (result2 != null)
            {
                if (result2.Tables[0].Rows.Count > 0)
                {
                    int i = 0;
                    for (i = 0; i < result2.Tables[0].Rows.Count; i++)
                    {
                        yaopinmingcheng.Items.Add(result2.Tables[0].Rows[i][2].ToString().Trim());
                    }
                }
            }
            sql = "select * from yongyaoguanli where id=" + Request.QueryString["id"].ToString().Trim() ;
            getdata(sql);
        }
    }



    private void getdata(string sql)
    {
        DataSet result = new DataSet();
        result = new Class1().hsggetdata(sql);
        if (result != null)
        {
            if (result.Tables[0].Rows.Count > 0)
            {
                bingrenbianhao.Text = result.Tables[0].Rows[0]["bingrenbianhao"].ToString().Trim();bingrenxingming.Text = result.Tables[0].Rows[0]["bingrenxingming"].ToString().Trim();yaopinmingcheng.Text = result.Tables[0].Rows[0]["yaopinmingcheng"].ToString().Trim();shuliang.Text = result.Tables[0].Rows[0]["shuliang"].ToString().Trim();zonge.Text = result.Tables[0].Rows[0]["zonge"].ToString().Trim();
                
            }
        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        
        string sql;
后面还有 15 行代码,购买后查看完整代码

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

AI 解读 AI

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

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