cn/left.ascx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class cn_left : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
bind();
bindqq();
}
}
//product
public void bind()
{
DataSet ds = Common.selectall("productbigclass where show=1");
if (ds != null)
{
rptclass.DataSource = ds;
rptclass.DataBind();
}
}
protected void rptClass_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
Repeater rptproduct = (Repeater)e.Item.FindControl("rptproduct");
DataRowView row = (DataRowView)e.Item.DataItem;
string _classId = row["pbcid"].ToString();
#region 强制显示
try
{
if (_classId == Request.QueryString["pbcid"].ToString())
{
System.Web.UI.HtmlControls.HtmlControl li = (System.Web.UI.HtmlControls.HtmlControl)e.Item.FindControl("eee");
li.Attributes.Add("class", "show");
}
}
catch
{
DataSet ds = Common.selectsql("select top 1 * from productbigclass");
string id = ds.Tables[0].Rows[0]["pbcid"].ToString();
if (_classId == id)
{
System.Web.UI.HtmlControls.HtmlControl li = (System.Web.UI.HtmlControls.HtmlControl)e.Item.FindControl("eee");
li.Attributes.Add("class", "show");
}
}
#endregion
DataSet dsproduct = Common.selectwhereid("productclass","pbcid=@id order by xuhao asc",Convert.ToInt32(_classId));
后面还有 17 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。