admin/Product/ProductList.aspx.cs

(开头部分) 10KB

这里只显示每个文件的开头 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 System.Data.OleDb;
using SystemProductSort;
using SystemProduct;
using SystemBll;

public partial class admin_Product_ProductList : System.Web.UI.Page
{
    BLL bll = new BLL();
    public static string NUll = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        btDelete.Attributes["onclick"] = "javascript:return confirm('是否确定删除?')";
        gvProduct.Attributes.Add("style", "word-break:break-all;word-wrap:break-word");
        if (!Page.IsPostBack)
        {
            try
            {
                Session["search"] = "";
                Session["searchdll"] = "";
                Session["All"] = "";
                //
                string classid = Request.QueryString["classid"].ToString();
                Session["id"] = classid;
                BindDataByClassid(classid);
                BindAspNetPagerByClassid(classid);
                BindDdlSearch();
            }
            catch
            {
                Session["search"] = "";
                Session["searchdll"] = "";
                Session["All"] = "";
                Session["id"] = "";
                BindAspNetPagerSearch("","");
                BindDataSearch("", "");
                BindDdlSearch();
            }

        }
    }

    #region 绑定分页\产品类\精选内容翻页数\搜索精选内容\翻页\绑定ddlsearch

    //绑定dlclass
    private void BindDdlSearch()
    {
        DataSet ds = ProductSort.GetMsg();
        ds.Tables[0].Columns.Add("Text", System.Type.GetType("System.String"), "psname");
        dlclass.DataSource = ds.Tables[0].DefaultView;
        dlclass.DataBind();
后面还有 249 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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