Web/zygx.aspx.cs
(开头部分) 5KB这里只显示每个文件的开头 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 zygx : Web.PrePage
{
//protected int pagesize = 20;
//protected int sid = 0;
//protected int currentindex = 1;
protected BZiYuan bnews = new BZiYuan();
protected MZiYuan newss = new MZiYuan();
protected MZiYuanSort model = new MZiYuanSort();
protected void Page_Load(object sender, EventArgs e)
{
this.literName.Text = "资源共享";
this.literTitle.Text = "资源共享";
if (!base.IsPostBack)
{
this.literName.Text = "";
if (base.Request.QueryString["sid"] != null && base.IsInt2(base.Request.QueryString["sid"].ToString()))
{
model = (new BZiYuanSort()).GetModel(int.Parse(base.Request.QueryString["sid"].ToString()));
if (model == null)
{
base.ShowMsg(Page, "参数错误!", "default.html");
}
if (base.Request.QueryString["page"] == null || !base.IsInt2(base.Request.QueryString["page"].ToString()))
{
Response.Redirect("/zygx/" + model.NS_Id.ToString() + "-1.html");
}
else
{
this.zygxList1.CurrentIndex = int.Parse(base.Request.QueryString["page"].ToString());
}
this.zygxList1.Sid = model.NS_Id;
this.literName.Text = " > " + model.NS_Name;
this.literTitle.Text = model.NS_Name;
//标题,关键字,描述
HtmlMeta
keywords = new HtmlMeta(),
description = new HtmlMeta();
keywords.Name = "keywords";
description.Name = "description";
if (model.NS_Title != string.Empty)
{
base.Title = model.NS_Title;
}
if (model.NS_Keywords != string.Empty)
{
后面还有 85 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
