Web/zygxshow.aspx.cs

(开头部分) 3KB

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

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

namespace Web
{
    public partial class zygxshow : Web.PrePage
    {
        protected MZiYuan model = new MZiYuan();
        protected BZiYuan BNews = new BZiYuan();
        protected MZiYuanSort mm = new MZiYuanSort();
        public int numbers;
        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 BZiYuan().Upd(Convert.ToInt32(base.Request.QueryString["id"]));
                    model = (new BZiYuan()).GetModel(int.Parse(base.Request.QueryString["id"]));

                    if (model == null)
                    {
                        base.ShowMsg(Page, "参数错误!");
                        return;
                    }
                    //  BNewsSort
                    //xgnews1.Values = model.N_SortId.ToString();

                    mm = (new BZiYuanSort()).GetModel(model.N_SortId);
                    Literal1.Text = model.N_Name;
                    this.literTitle.Text = mm.NS_Name;
                    //描述,关键词,标题
                    HtmlMeta
                     keywords = new HtmlMeta(),
                     description = new HtmlMeta();
                    keywords.Name = "keywords";
                    description.Name = "description";

                    if (model.N_Title != string.Empty)
                    {
                        base.Title = model.N_Title;
                    }

                    if (model.N_Keywords != string.Empty)
                    {
                        base.Keywords = model.N_Keywords;
                    }
                    if (model.N_Description != string.Empty)
                    {
                        base.Description = model.N_Description;
                    }
                    keywords.Content = base.Keywords;
后面还有 37 行代码,解锁后查看完整代码

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

AI 解读

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

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