YKT_EShop/Controls/getHelpList.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YKT_Common;
using YKT_BLL;
namespace YKT_EShop.Controls
{
public partial class getHelpList : BasicControl
{
string paramValue = "";
protected Repeater rpList;
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 = "";
if (paramValue.Length > 0)
{
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 != "")
{
strWhere += " and " + where;
}
}
fieldOrder = " ID Desc ";
this.rpList.DataSource = new BLLHelp().GetList(row, strWhere, fieldOrder);
this.rpList.DataBind();
}
}
}
后面还有 1 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。