UI/pro_catelist.aspx.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.Configuration;
using System.Data;

using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;


public partial class pro_catelist : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        BLL.fathercate my_f = new BLL.fathercate();
        DataSet ds_f = my_f.dataset();
        Repeater1.DataSource = ds_f.Tables[0];
        Repeater1.DataBind();
        s_cateid();
        sbing();
    }
    public string datas(string f_cateid)
    {
        string result = "";
        BLL.procate myb = new BLL.procate();
        DataSet ds = myb.data_f(Convert.ToInt32(f_cateid));
        for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
        {
            if (ds.Tables[0].Rows[i] != null)
            {
                result = result + "<li>" + "<a href=pro_catelist.aspx?cateid=" + ds.Tables[0].Rows[i]["_cateid"].ToString() + ">" + ds.Tables[0].Rows[i]["_catename"].ToString() + "</a>" + "</li>";

            }



        }
        return result;


    }

    public void s_cateid()
    {
        string cate_id = Request.QueryString["cateid"].ToString();
        l_cateid.Text = cate_id;
        BLL.product b_p = new BLL.product();
        int result = b_p.num_cateid(Convert.ToInt32(cate_id));
        AspNetPager1.RecordCount = result;
        AspNetPager1.PageSize = 9;

    }

    public void sbing()
    {
        int cateid = Convert.ToInt32(l_cateid.Text);
        BLL.product b_date = new BLL.product();
后面还有 22 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。