YKT_EShop/Controls/getMenuClass.cs
(完整代码) 1KBusing 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 getMenuClass : BasicControl
{
string paramValue = "";
public string ParamValue
{
get { return paramValue; }
set { paramValue = value; }
}
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
Bind_rpList();
}
}
private void Bind_rpList()
{
Repeater rp = (Repeater)this.FindControl("rpList");
if (rp != null)
{
int row = 0;
string where = "";
string strWhere = " ClassID>0 ", strOrder = "";
if (paramValue != "")
{
row = Input.SetInt(Input.TagVal(ParamValue, "row"));
if (row < 1)
{
row = 10;
}
where = Input.SetString(Input.TagVal(ParamValue, "where"));
if (where.Trim() != "")
{
strWhere += " and " + where;
}
strOrder = Input.SetString(Input.TagVal(paramValue, "order"));
}
List<ModelProductClass> list = new BLLProductClass().GetModelList(row, strWhere, strOrder);
rp.DataSource = list;
rp.DataBind();
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。