473,325 Members | 2,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

ReturnUrl Null

I am trying to redirect users upon login to the pages they requested using
FormsAuthentication, but keep getting an error because my ReturnUrl is null.
Can anyone help me figure out why is this? I am using C# on a Asp.Net 1.1
page.

HS
Nov 19 '05 #1
1 1619
If they typed in login.aspx directly then there won't be the QueryString.
If you just call FormsAuthentication.RedirectFromLoginPage then it will handle
both scenarios (when there is and isn't a ReturnUrl) for you properly.

-Brock
DevelopMentor
http://staff.develop.com/ballen
I am trying to redirect users upon login to the pages they requested
using FormsAuthentication, but keep getting an error because my
ReturnUrl is null. Can anyone help me figure out why is this? I am
using C# on a Asp.Net 1.1 page.

HS


Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: tshad | last post by:
I have a logon page that is may be called by the Forms Authentication setup. This would put a ReturnURL as part of the URL. I would normally then just issue a: ...
1
by: Randall Parker | last post by:
I'm coding up C# CodeBehind source code for a Logon.aspx file. I have a newbie few questions: 1) If a PostBack comes in and you return from it (rather than redirect) then will the original...
4
by: Chicagoboy27 | last post by:
All I am trying to find a solution for removing the ?returnUrl if a user is not authenticated. I want to be redirect an unauthenticated user to the login.aspx less the returnUrl. Once they log...
7
by: vvkl | last post by:
I have readed a example code from MSDN about FormsAuthenticationTicket calss, but there's a line I can't understand : 'strRedirect = Request;' What's the mean in which square brackets? Thank...
0
by: mark4asp | last post by:
The login page is: http://localhost:1086/Client/Default.aspx The default page is: http://localhost:1086/Client/News/News.aspx i.e. I have the following in web.config <authentication...
1
by: mark4asp | last post by:
Ok so my previous message about the vanishing ReturnUrl value was also lost! - grrrr Fate - I'll get my revenge on you - if you think you can toy with me like this! I decided to change the form...
0
by: tranky | last post by:
Hi, i've a problem, and i know you can help me to solve it. I'm using Asp Net and Form Authentication. When i'm anonymous and i must show a protected page, i'm redirected into a login.aspx page...
1
by: tranky | last post by:
Hi, i've a problem, and i know you can help me to solve it. I'm using Asp Net and Form Authentication. When i'm anonymous and i must show a protected page, i'm redirected into a login.aspx page...
0
by: tranky | last post by:
Hi, i've a problem, and i know you can help me to solve it. I'm using Asp Net and Form Authentication. When i'm anonymous and i must show a protected page, i'm redirected into a login.aspx page...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.