FLOWER/Index.aspx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Common;

namespace FLOWER
{
    public partial class Index : System.Web.UI.Page
    {
        SQLHelper sqlhelper = new SQLHelper();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack) 
            {
                Repeater1.DataSource = sqlhelper.Query("select top 8 * from Curtains where CurtainTypeId = 1 and verify = 1").Tables[0];
                Repeater1.DataBind();
                Repeater2.DataSource = sqlhelper.Query("select top 8 * from Curtains where CurtainTypeId = 1 and verify = 1").Tables[0];
                Repeater2.DataBind();
                Repeater3.DataSource = sqlhelper.Query("select top 8 * from Curtains where CurtainTypeId = 2 and verify = 1").Tables[0];
                Repeater3.DataBind();
                Repeater4.DataSource = sqlhelper.Query("select top 8 * from Curtains where CurtainTypeId = 2 and verify = 1").Tables[0];
                Repeater4.DataBind();
                Repeater5.DataSource = sqlhelper.Query("select top 4 * from Curtains where CurtainIsNew = '是' and CurtainTypeId in (1,2) and verify = 1").Tables[0];
                Repeater5.DataBind();
                Repeater6.DataSource = sqlhelper.Query("select top 4 * from Curtains where CurtainIsNew = '是' and CurtainTypeId in (3,4,5) and verify = 1").Tables[0];
                Repeater6.DataBind();
            }
        }


    }
}

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

AI 解读 AI

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

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