473,385 Members | 1,769 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,385 software developers and data experts.

RedirectFromLoginPage

Hi,

I like using RedirectFromLoginPage because it redirects back to the
originally requested page after successful login. However, if the
originally requested page was the login form then it automatically redirects
to default.aspx.

How can I preserve this redirection behaviour but specify a different page
to redirect to (other than default.aspx)?

Thanks in advance.

Jul 21 '05 #1
3 1315
Thats the default behaviour.

If you want custom behaviour you will have to do a bit of spade work. Have a
look at this article (I have used it and it works like a treat)

http://www.codeproject.com/aspnet/formsroleauth.asp

Its a bit more work but i think its worth it. If you wish to use it and have
any problems or question just write back
--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"rufus" <he***@online.de> wrote in message news:ci**********@online.de...
Hi,

I like using RedirectFromLoginPage because it redirects back to the
originally requested page after successful login. However, if the
originally requested page was the login form then it automatically redirects to default.aspx.

How can I preserve this redirection behaviour but specify a different page
to redirect to (other than default.aspx)?

Thanks in advance.

Jul 21 '05 #2

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:ur**************@TK2MSFTNGP12.phx.gbl...
Thats the default behaviour.

If you want custom behaviour you will have to do a bit of spade work. Have a look at this article (I have used it and it works like a treat)

http://www.codeproject.com/aspnet/formsroleauth.asp

Its a bit more work but i think its worth it. If you wish to use it and have any problems or question just write back
--

Fantastic Dave! Just what I was looking for. Cheers.
Jul 21 '05 #3
you are welcome

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"rufus" <he***@online.de> wrote in message news:ci**********@online.de...

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:ur**************@TK2MSFTNGP12.phx.gbl...
Thats the default behaviour.

If you want custom behaviour you will have to do a bit of spade work.
Have a
look at this article (I have used it and it works like a treat)

http://www.codeproject.com/aspnet/formsroleauth.asp

Its a bit more work but i think its worth it. If you wish to use it and

have
any problems or question just write back
--

Fantastic Dave! Just what I was looking for. Cheers.

Jul 21 '05 #4

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

Similar topics

0
by: Rob O'Cop | last post by:
Hi, I've got an Intranet site that's been using the usual Forms authentication. Now, I want to retrieve the Windows Login and authenticate the user automatically without her typing...
0
by: Andres Romero | last post by:
I have a login web form named login.aspx, wich validates user from a database. I configure the Web.config file to it authenticates using Form mode, and when the user try acces other page than...
2
by: Gan | last post by:
Hi, I just wonder after calling the RedirectFromLoginPage function, my current page still stick to login.aspx fiile. Any clue?? Thanks
1
by: Murphy | last post by:
I am trying to code a workaround to avoid being redirected to default.aspx if the ReturnURL parameter is blank when the RedirectFromLoginPage method is called. Depending upon the login status the...
2
by: Ben Fidge | last post by:
Is FormsAuthentication.RedirectFromLoginPage the only way to populate the HttpContext.Current.User.Identity.Name property? A base class for each page contains the follwoing property: public...
2
by: Rob O'Cop | last post by:
Hi, I've got an Intranet site that's been using the usual Forms authentication. Now, I want to retrieve the Windows Login and authenticate the user automatically without her typing...
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: ...
8
by: Andy Sutorius | last post by:
Hi, For some reason the login.aspx webpage redirects to itself after a successful login and not to the url in the address bar. I have stepped through this with debug and it behaves as it is...
8
by: Edward Mitchell | last post by:
I have a main project that is protected in that the user is directed to a login.aspx file. The text in the web.config file is: <authentication mode="Forms"> <forms loginUrl="Login.aspx" />...
4
by: jjjooooohhnnn | last post by:
Greetings, I have encountered what appears to be a fairly common problem: RedirectFromLoginPage is not redirecting to RedirectUrl. I have tried all the advice that I could on the 'net, and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.