Re: Simple Question regarding relative path references
- From: tduestad@xxxxxxxxx
- Date: 2 Jun 2005 01:21:57 -0700
Have you tried:
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
If InStr(Request.Path.ToLower, "login.aspx") = 0 Then
Response.Redirect("~/forms/login.aspx")
End If
End Sub
However you should check out:
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconaspnetauthentication.asp
and
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconthecookieauthenticationprovider.asp
as Form authentication is already provided for you.
.
- References:
- Simple Question regarding relative path references
- From: damiensawyer@xxxxxxxxxxxx
- Simple Question regarding relative path references
- Prev by Date: Asp.net Localization!!!!!
- Next by Date: Unique user connexion to a web site [ASP.NET 2]
- Previous by thread: Simple Question regarding relative path references
- Next by thread: Roles
- Index(es):
Relevant Pages
|