ASP.NET2.0 - 验证Authentication(3) –HttpRequest.IsAuthenticated属性

Gets a value indicating whether the request has been authenticated.

 

protected void Page_Load(object sender, EventArgs e)

{

//whatever windows & forms authentications

if (!Request.IsAuthenticated)

{

    Response.Redirect("Logon.aspx");

}

}

 

http://msdn.microsoft.com/en-us/library/system.web.httprequest.isauthenticated.aspx

posted @ 2009-01-07 16:38  许晓光  阅读(664)  评论(0编辑  收藏  举报