You have two choices (and more if you try):

1. Put a check on the login.aspx to see if the ReturnUrl querystring
value is null. If so, do a Server.Transfer to the login page with your
own specified ReturnUrl.

2. By default, if the ReturnUrl argument is empty, RedirectFromLoginPage
tries to redirect to default.aspx. If you name your main page of your
site default.aspx, then you won't have a problem anymore.

-Brian

-----Original Message-----
From: Lude Gullit [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 11, 2004 3:09 PM
To: [EMAIL PROTECTED]
Subject: [C#.NET] Re: About authentication


Hi

Someone FIRST requests the login.aspx, not FIRST requests other page
and then is redirected to login.aspx.

if you FIRST requests the login.aspx,... 


Yahoo! Groups Sponsor

Get unlimited calls to

U.S./Canada

Web Bug from http://view.atdmt.com/VON/view/yhxxxvon01900091von/direct/01/&time=1100206571487142
Web Bug from http://us.adserver.yahoo.com/l?M=296572.5585671.6651487.3001176/D=groups/S=:HM/A=2343726/rand=499431293


Yahoo! Groups Links

Reply via email to