Web/newshow.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 newshow : Web.PrePage
    {
        protected MNews model = new MNews();
        protected BNews BNews = new BNews();
        protected MNewsSort mm = new MNewsSort();
        public int numbers;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!base.IsPostBack)
            {
                // 下载于www.51aspx.com
                if (base.Request.QueryString["id"] != null && base.IsInt2(base.Request.QueryString["id"]))
                {
                    bool click = new BNews().Upd(Convert.ToInt32(base.Request.QueryString["id"]));
                    model = (new BNews()).GetModel(int.Parse(base.Request.QueryString["id"]));
                    mm =new BNewsSort().GetModel(model.N_SortId);
                    this.literTtile.Text = mm.NS_Name;
                    if (model == null)
                    {
                        base.ShowMsg(Page, "参数错误!");
                        return;
                    }
                    //  BNewsSort
                    //xgnews1.Values = model.N_SortId.ToString();

                    mm = (new BNewsSort()).GetModel(model.N_SortId);
                    Literal1.Text =model.N_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 积分,解读结果公开显示在下面。

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