View Single Post
  #8 (permalink)  
Old March 20th, 2006, 04:11 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

This is actually a feature, in that it allows a user to return to the page they originally requested after they logged in.

One of the ways to circumvent this, is inside the LoggedIn event of the Login control. In that event, you can determine whether you want to let .NET take care of redirecting (tat is, do nothing), or redirect to any page you want, like the homepage.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Eraser by Nine Inch Nails (Track 11 from the album: The Downward Spiral) What's This?