vs.net2005中,用WebApplication方式开发网站如何使用PageBase类判断用户登陆

vs.net2005中,用WebApplication方式开发网站怎么使用PageBase类判断用户登陆?
vs.net2005中,用WebApplication方式开发网站怎么使用PageBase类判断用户登陆?

------解决方案--------------------
沙发 没有了 抢个板凳也可以
------解决方案--------------------

建个类 PageBase : Page (这里是类,不是web 页)
然后派生他就OK了。
------解决方案--------------------
基类:ManagePageBase.cs
namespace Utility
{
public class ManagePageBase:System.Web.UI.Page
{
//管理员验证信息
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
if (Session[ "adminsSession "] == null || Session[ "adminsPwd "] == null )
{
Response.Redirect( "~/manage/login.aspx?erro=1&ReUrl= " + HttpContext.Current.Request.Url.PathAndQuery);
}
}

}
}

admin.aspx继承ManagePageBase即可

/// </summary>
public partial class admin : Utility.ManagePageBase
{
.............