Hi David,
Yes, that's what it does by design, provided the page is protected *and* the user is currently not logged in. Take a look at the web.config for the final PlanetWrox application. You'll see <location> elements like this:
Code:
<location path="MyProfile.aspx">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
When non-authenticated users access the MyProfile page they are taken to Login.aspx with the original name in the querystring. That way, they are taken to that page when they login successfully. Check out chapter 15, with pages 546 to 550 in particular to see how this works.
Quote:
|
quote:I forgot to add my thanks for writing the book. I read it cover to cover and found it to be extremely useful
|
You're welcome; glad you like the book. Would you consider writing a review about it on Amazon.com?
Kind regards,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
Beginning ASP.NET 3.5 : in C# and VB,
ASP.NET 2.0 Instant Results and
Dreamweaver MX 2004
Want to be my colleague? Then check out this post.