Web/bbydshow.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.Text.RegularExpressions;
using System.Data;
using System.Web.UI.HtmlControls;

namespace Web
{
    public partial class bbydshow : Web.PrePage
    {
        protected MBaoBaoSort model = new MBaoBaoSort();
        protected MBaoBao yuanSuo;

        protected MBaoBao models = new MBaoBao();

        protected BBaoBao objBProject = new BBaoBao();
        protected MBaoBaoSort mm = new MBaoBaoSort();
        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 dianji = new BBaoBao().Upd(Convert.ToInt32(Request.QueryString["id"]));
                    models = new BBaoBao().GetModel(Convert.ToInt32(Request.QueryString["id"]));
                    model = new BBaoBaoSort().GetModel(Convert.ToInt32(models.P_SortId));

                    if (model == null)
                    {
                        base.ShowMsg(Page, "参数错误!");
                        return;
                    }
                    this.literTitle.Text = model.PS_Name;
                    //读取图片
                    List<MBaoBaoPicAdmin> list = new BBaoBaoPicAdmin().GetListValues(" where BB_BaoBaoId=" + base.Request.QueryString["id"]);
                    strimage = string.Empty;//清空原有图片
                    if (models.P_Pic != "")
                    {
                        strimage += " <li><img src=/images/Project_Small/" + models.P_Pic + "  onerror= 'javascript:this.src= /images/Err.png  '/></li>";
                    }
                    if (list != null)
                    {
                        this.id1.Visible = true;
                        for (int i = 0; i < list.Count; i++)
                        {
                            strimage += " <li><img src=/images/BaoBao_Small/" + list[i].BB_Pic + "  onerror= 'javascript:this.src= /images/Err.png' /></li>";
                        }
                    }
                    if (strimage== "")
                    {
                        this.id1.Visible = false;
                    }

后面还有 57 行代码,解锁后查看完整代码

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

AI 解读

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

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