Web/Default.aspx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _Default : System.Web.UI.Page
{
UBW.BLL.bookType bll = new UBW.BLL.bookType();
UBW.BLL.books bll2 = new UBW.BLL.books();
UBW.BLL.notices bll3 = new UBW.BLL.notices();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Repeater3.DataSource = bll3.GetData(" top 8 * ", " 1=1 order by nid desc");
Repeater3.DataBind();
Repeater1.DataSource = bll.GetAll();
Repeater1.DataBind();
}
}
protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)
{
string tid = DataBinder.Eval(e.Item.DataItem, "tid").ToString();
DataList rp = (DataList)e.Item.FindControl("DataList1");
rp.DataSource = bll2.GetData(" top 5 * ", " price>0 and flag=1 and a.tid=" + tid + " order by bid desc ");
rp.DataBind();
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。