Web/help.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Common;
namespace Web
{
public partial class help : Web.UI.BasePage
{
public int kindId = (int)Channel.Contents;
public string page;
public Model.Contents model = new Model.Contents();
protected string contentId="";
protected string aboutId="";
protected string hzhbId="";
protected string ServiceId="";
protected string CopyrightId="";
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;
}
}
switch (this.page)
{
case "about":
this.aboutId = "current_nav";
break;
case "hzhb":
this.hzhbId = "current_nav";
break;
case "content":
this.contentId = "current_nav";
break;
case "copyright":
this.CopyrightId = "current_nav";
break;
case "service":
this.ServiceId = "current_nav";
break;
}
model = bll.GetModel(page);
//切记绑定一下页面,Repeater属性的变量才会生效,如果你Repeater属性没有变量,下面这句可以忽略
this.DataBind();
}
后面还有 2 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。