WmptWap/App_LocalResources/PageBase.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
//123@163.com.com
//2011.6.15
//后台管理页面基类 进行登录判断 权限判断
using WMPT.Common;
using WMPT.Model;
using WMPT.SQLServerDAL;
/// <summary>
/// AdminPageBase 后台页面基类
/// </summary>
public class PageBase : System.Web.UI.Page
{
/// <summary>
/// 系统配置信息
/// </summary>
protected internal SiteInfo config;
public string pagename = "basic.aspx";// HjNetHelper.GetPageName();
public string openid = "";
/// <summary>
/// BasePage类构造函数
/// </summary>
public PageBase()
{
this.PreRender += new EventHandler(Page_PreRender);
}
/// <summary>
/// 初始化,这个时间生成session对像
/// </summary>
/// <param name="e"></param>
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
openid = WebUtility.FixgetCookie("openid");
if (openid == null || openid == "")
{
WebUtility.WebOauth(Context);
return;
}
HJlog.toLog(" PageBase->openid=" + openid);
}
void Page_PreRender(object sender, EventArgs e)
{
//将时间戳保存在hiddenfield中
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
