Web/jsfc.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 Model;
using Bll;
using System.Web.UI.HtmlControls;

namespace Web
{
    public partial class jsfc : Web.PrePage
    {
        protected MProjectSort model = new MProjectSort();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!base.IsPostBack)
            {
                this.liter1.Text = "教师风采";
                this.literName.Text = "";
                if (base.Request.QueryString["sid"] != null && base.IsInt2(base.Request.QueryString["sid"].ToString()))
                {
                    model = (new BProjectSort()).GetModel(int.Parse(base.Request.QueryString["sid"].ToString()));

                    this.literName.Text = " > " + model.PS_Name;
                    this.liter1.Text = model.PS_Name;
                    if (model == null)
                    {
                        base.ShowMsg(Page, "参数错误!", "index.html");
                    }

                    if (base.Request.QueryString["page"] == null || !base.IsInt2(base.Request.QueryString["page"].ToString()))
                    {
                        Response.Redirect("/jsfc/" + model.PS_Id.ToString() + "-1.html");
                    }
                    else
                    {
                        this.projectlist1.CurrentIndex = int.Parse(base.Request.QueryString["page"].ToString());
                    }
                    this.projectlist1.Sid = model.PS_Id;
                    //this.literName.Text = model.PS_Name;
                    //设置标题,关键字,描述
                    HtmlMeta
                       keywords = new HtmlMeta(),
                       description = new HtmlMeta();
                    keywords.Name = "keywords";
                    description.Name = "description";

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

                    if (model.PS_Keywords != string.Empty)
                    {
                        base.Keywords = model.PS_Keywords;
                    }
                    if (model.PS_Description != string.Empty)
                    {
后面还有 27 行代码,解锁后查看完整代码

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

AI 解读

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

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