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