YKT_EShop/Controls/getNewsList.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YKT_BLL;
using YKT_Common;
using YKT_Model;
namespace YKT_EShop.Controls
{
public partial class getNewsList : System.Web.UI.UserControl
{
string paramValue = "";
public string ParamValue
{
get { return paramValue; }
set { paramValue = value; }
}
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
this.Bind_rpList();
}
}
private void Bind_rpList()
{
Repeater rp = (Repeater)this.FindControl("rpList");
if (rp != null)
{
int row = 10, ClassID = 0;
string strWhere = " ID>0 ", where = "", fieldorder = " ID Desc ";
if (paramValue.Length > 0 && paramValue != "")
{
row = Input.SetInt(Input.TagVal(ParamValue, "row"));
if (row < 1)
{
row = 10;
}
ClassID = Input.SetInt(Input.TagVal(ParamValue, "classid"));
if (ClassID > 0)
{
strWhere += " and ClassID=" + ClassID;
}
where = Input.SetString(Input.TagVal(ParamValue, "where"));
if (where.Trim() != "")
{
strWhere += " and " + where;
}
}
List<ModelAnnounce> listannounce = new BLLAnnounce().GetModelList(row, strWhere, fieldorder);
rp.DataSource = listannounce;
rp.DataBind();
}
}
后面还有 2 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。