Web/jchdshow.aspx.cs

(开头部分) 4KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using Bll;
using System.Data;
using System.Web.UI.HtmlControls;
using System.Web.UI.MobileControls;

namespace Web
{
    public partial class jchdshow : Web.PrePage
    {
        protected MProduct model = new MProduct();
        protected BProduct objBProject = new BProduct();
        protected MProductSort mm = new MProductSort();
        public static string strimage = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!base.IsPostBack)
            {

                if (base.Request.QueryString["id"] != null && base.IsInt2(base.Request.QueryString["id"]))
                {
                    bool click = new BProduct().Upd(Convert.ToInt32(base.Request.QueryString["id"]));
                    model = (new BProduct()).GetModel(int.Parse(base.Request.QueryString["id"]));
                    mm = new BProductSort().GetModel(model.P_SortId);
                    this.liter1.Text = mm.PS_Name;
                    if (model == null)
                    {
                        base.ShowMsg(Page, "参数错误!");
                        return;
                    }

                    //读取图片
                    List<MProductPicAdmin> list = new BProductPicAdmin().GetListValues(" where PP_ProceId=" + base.Request.QueryString["id"]);
                    strimage = string.Empty;
                    if (model.P_Pic != "")
                    {
                        strimage += " <li><img src=/images/Product_Small/" + model.P_Pic + "  onerror= 'javascript:this.src= /images/Err.png  '/></li>";
                    }
                    if (list != null)
                    {
                        this.dv1.Visible = true;
                        for (int i = 0; i < list.Count; i++)
                        {
                            strimage += " <li><img src=/images/Product_Small/" + list[i].PP_Pic + "  onerror= 'javascript:this.src= /images/Err.png  '/></li>";
                        }
                    }
                    if (strimage == "")
                    {
                        this.dv1.Visible = false;
                    }
                    mm = (new BProductSort()).GetModel(model.P_SortId);
                    literTtile.Text = model.P_Name;
                    HtmlMeta
                    keywords = new HtmlMeta(),
后面还有 52 行代码,解锁后查看完整代码

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

AI 解读

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

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