boguCms/product/Default.aspx.cs

(开头部分) 3KB

这里只显示每个文件的开头 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;
using Model;
using AccessDal;

public partial class product_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            GetPage();
        }
    }
    protected void GetPage()
    {

        if (Request.Url.AbsoluteUri.Contains("?all"))
        {
            AspNetPager1.RecordCount = Product.GetCount();
            int StartRecord = AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1);
            int MaxRecord = AspNetPager1.PageSize;
            prolist.DataSource = Product.GetList(StartRecord, MaxRecord);
            prolist.DataBind();

            prosmall.Visible = false;
            probig.Visible = false;

            this.Title = "产品中心_大连宾果LED";
        }
        else if (Request.Url.AbsoluteUri.Contains("c=m"))
        {
            int mid = Convert.ToInt32(Request.QueryString["p"]);
            AspNetPager1.RecordCount = Product.GetCountMid(mid);
            int StartRecord = AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1);
            int MaxRecord = AspNetPager1.PageSize;
            prolist.DataSource = Product.GetListMid(mid,StartRecord, MaxRecord);
            prolist.DataBind();
            ProMidInfo mi = ProMidOpe.GetOneMid(mid);
            prosmall.Text = mi.MName;
            prosmall.NavigateUrl = "/product/Default.aspx?p=" + mid.ToString() + "&c=m";

            ProBigInfo bi = ProBigOpe.GetOneBig(mi.BID);
            probig.Text = bi.BName;
            probig.NavigateUrl = "/product/Default.aspx?p=" + mi.BID.ToString() + "&c=b";

            this.Title = mi.MName+"_"+bi.BName+"_产品中心_大连宾果LED";
            
        }
        else if (Request.Url.AbsoluteUri.Contains("c=b"))
        {
            int bid = Convert.ToInt32(Request.QueryString["p"]);
后面还有 31 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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