I was just looking at Default.aspx and it just had an empty form. In the code behind file i noticed the Page Load sub has
Response.Redirect("~/TimeTracker/TimeEntry.aspx"). I'm trying to understand why it does not state ~/TimeTracker/login.aspx") since when i try to start the app that is where I'm going.
Where in the timeentry.aspx is the login.aspx coming into play? If anyone can shed some light on this it would be great.
Thanks
------------------------------------------------------------------------------------------------------------------------------------------ Tolerance of crime breeds unending ever increasing crime.
If you're not authenticated, upon trying to access a page that requires authentication you will be automatically redirected to the login page (as specified in the web.config). You might notice when you are redirected to the login page that the url query
string contains ReturnUrl with the the TimeEntry page set as the value...
Thank you for this info - i'm guessing its loginUrl="~/TimeTracker/login.aspx where this URL is taken? Also where in the code-behind file of
TimeEntry.aspx is the command to redirect based on the URL specified in web.config? I can't seem to find the line of code that is causing this redirection to happen.
Try checking the IIS logs and see what pages have been called.
Click "Mark as Answer" on the post that helped you.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
You can download the reflector from http://www.aisto.com/roeder/dotnet/
Click "Mark as Answer" on the post that helped you.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
Member
1 Points
10 Posts
Default.aspx
Jan 09, 2008 07:21 PM|thomassamson|LINK
I was just looking at Default.aspx and it just had an empty form. In the code behind file i noticed the Page Load sub has Response.Redirect("~/TimeTracker/TimeEntry.aspx"). I'm trying to understand why it does not state ~/TimeTracker/login.aspx") since when i try to start the app that is where I'm going. Where in the timeentry.aspx is the login.aspx coming into play? If anyone can shed some light on this it would be great.
Thanks
------------------------------------------------------------------------------------------------------------------------------------------ Tolerance of crime breeds unending ever increasing crime.
Member
670 Points
156 Posts
Re: Default.aspx
Jan 09, 2008 08:13 PM|Mercury082|LINK
If you're not authenticated, upon trying to access a page that requires authentication you will be automatically redirected to the login page (as specified in the web.config). You might notice when you are redirected to the login page that the url query string contains ReturnUrl with the the TimeEntry page set as the value...
Member
1 Points
10 Posts
Re: Default.aspx
Jan 10, 2008 07:06 PM|thomassamson|LINK
Thank you for this info - i'm guessing its loginUrl="~/TimeTracker/login.aspx where this URL is taken? Also where in the code-behind file of TimeEntry.aspx is the command to redirect based on the URL specified in web.config? I can't seem to find the line of code that is causing this redirection to happen.
All-Star
44551 Points
13496 Posts
MVP
Re: Default.aspx
Jan 10, 2008 07:15 PM|TATWORTH|LINK
Try checking the IIS logs and see what pages have been called.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
Member
670 Points
156 Posts
Re: Default.aspx
Jan 10, 2008 07:16 PM|Mercury082|LINK
You won't find it in the code behind. If you have a look in reflector at System.Web.Security.FormsAuthentication you will see:
All-Star
48393 Points
12161 Posts
Re: Default.aspx
Jan 10, 2008 10:48 PM|chetan.sarode|LINK
Check in web.config loginUrl="~/TimeTracker/login.aspx
If you are not authenticated then it will redire to login.aspx
Team Lead, Product Development
Approva Systems Pvt Ltd, Pune, India.
Member
1 Points
10 Posts
Re: Default.aspx
Jan 11, 2008 11:44 AM|thomassamson|LINK
Hi Mercury,
Thanks for this info which was helpful. Where can I find this reflector that you mentioned?
Thanks.
All-Star
44551 Points
13496 Posts
MVP
Re: Default.aspx
Jan 11, 2008 04:55 PM|TATWORTH|LINK
You can download the reflector from http://www.aisto.com/roeder/dotnet/
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
All-Star
48393 Points
12161 Posts
Re: Default.aspx
Jan 14, 2008 10:31 PM|chetan.sarode|LINK
Thanks, It will help me & other people
Team Lead, Product Development
Approva Systems Pvt Ltd, Pune, India.