Web/Admin/Products/Show.aspx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace cosmos.Web.Admin.Products
{
    public partial class Show : System.Web.UI.Page
    {
        public string strid = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    strid = Request.Params["id"];
                    int Id = (Convert.ToInt32(strid));
                    ShowInfo(Id);
                }
            }
        }

        //赋值
        private void ShowInfo(int Id)
        {
            cosmos.BLL.ProductInfo bll = new cosmos.BLL.ProductInfo();
            cosmos.Model.ProductInfo model = bll.GetModel(Id);
            this.lblId.Text = model.Id.ToString();
            this.lblTitle.Text = model.Title;
            this.lblClassId.Text = model.ClassId.ToString();
            this.lblImgUrl.Text = model.ImgUrl;
            this.lblContent.Text =cosmos.Common.Utils.ToTxt(model.Content);
            this.lblClick.Text = model.Click.ToString();
            this.lblIsTop.Text = model.IsTop.ToString();
            this.lblIsLock.Text = model.IsLock.ToString();
            this.lblSortId.Text = model.SortId.ToString();
            this.lblPubTime.Text = model.PubTime.ToString();
        }
    }
}

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

AI 解读 AI

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

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