Web/OutServer.aspx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Web
{
public partial class OutServer : Web.UI.BasePage
{
public int kindId = 10;
public string page;
public Model.Contents model = new Model.Contents();
protected void Page_Load(object sender, EventArgs e)
{
page = Request.QueryString["page"];
BLL.Contents bll = new BLL.Contents();
if (!bll.Exists(page))
{
//得到最前的页
page = bll.GetCallIndex();
if (string.IsNullOrEmpty(page))
{
Server.Transfer("error.aspx");
return;
}
}
model = bll.GetModel(page);
//切记绑定一下页面,Repeater属性的变量才会生效,如果你Repeater属性没有变量,下面这句可以忽略
this.DataBind();
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。