xiangou.aspx.cs

(完整代码) 1KB

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;


public partial class xiangou : System.Web.UI.Page
{
    db DB = new db();
    DataSet ds = new DataSet();
    string strsql;

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            hotimgbind();
            probind();

        }
    }
    public void hotimgbind()
    {

        strsql = "select top(5) * from product where pid between 21 and 35 ";
        ds = DB.mydata(strsql);
        this.hotDataList1.DataSource = ds.Tables[0].DefaultView;
        this.hotDataList1.DataBind();

    }

    public void probind()
    {
        strsql = "select top(30) * from product order by pid asc";
        ds = DB.mydata(strsql);
        proDataList2.DataSource = ds.Tables[0].DefaultView;
        proDataList2.DataBind();
    }
}

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

AI 解读

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

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