wxxsd/wxxsd123/product/productmodify.aspx.cs

(开头部分) 7KB

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

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
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;
using System.Xml.Linq;
using System.IO;
using System.Text.RegularExpressions;
using System.Drawing;
using System.Text;
using System.Net;

namespace wxxsd.wxxsd123.product
{
    public partial class productmodify : System.Web.UI.Page
    {
        public string ID;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["ID"] != null)
            {
                ID = Request.QueryString["ID"].ToString();
                if (!IsPostBack)
                {
                    BindDropdownList();
                    bindInfo();
                }
            }
          
        }

        public void bindProductClass()
        {
            DataTable dt = cs.product.getProductAll();
            this.DropDownList1.DataSource = dt;
            this.DropDownList1.DataTextField = "ClassName";
            this.DropDownList1.DataValueField = "ClassID";
            this.DropDownList1.DataBind();

        }
        protected void BindDropdownList()//绑定dropdownlist实现商品类型无限级分类
        {
            DataTable dt = new DataTable();
            try
            {

                dt = cs.product.getProductAll();
                CreateLevelDropDown(this.DropDownList1, dt);
                int id = Convert.ToInt32(Request.QueryString["ClassID"]);
                this.DropDownList1.SelectedValue = id.ToString();
            }
            catch (Exception) { }

        }
后面还有 138 行代码,购买后查看完整代码

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

AI 解读

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

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