![]() |
|
|
|||||||
![]() |
ASP Net - Login page won't redirect to a Register (new account) page |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
I've used Forms authentication in a number of ASP.Net
projects, but having a new problem. My Login.aspx page has a link to a page for the registration wizard, but won't go there when the hyperlink is clicked. I use IE7. For the Login.aspx page, I have a simple Login control as follows: <asp:Login ID="Login1" CreateUserText="Register" CreateUserUrl="~/Register.aspx" Runat="server" /> The Register.aspx page has a CreateUser Wizard configured as follows: <asp:CreateUserWizard id="CreateUserWizard1" ContinueDestinationPageUrl="~/Default.aspx" runat="server" /> My Web.config file has the following: <authorization> <deny users="?" /> </authorization> and <authentication mode="Forms"> <forms protection="All" longinUrl="Login.aspx" /> </authentication> For IIS Authentication, I have Forms Authentication enabled and Anonymous, ASP.NEt, and Basic Authentication disabled. On my Login page, if I click the Register hyperlink, redirection does not occur. Anybody see what I'm doing wrong? Jay |
|
|
|
|
#2 |
|
Posts: n/a
|
Jay <> wrote in news:cc8cf716-bfd4-46be-90c5-
: > On my Login page, if I click the Register hyperlink, > redirection does not occur. > > Anybody see what I'm doing wrong? The way you have things set up, they are being directed to register and then redirected to login, as all pages are set up as secure. You need to make an exception for the page register.aspx so it allows all users to hit it. Once you do this, everything will work fine. If you put register in its own folder, and all other files in that folder allow anon users, you can add a web config with its own authentication section allowing *. Otherwise, you have to create a page exception section. This page shows some examples of single pages: http://www.informit.com/articles/art...27315&seqNum=4 Peace and Grace, -- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA Twitter: @gbworld Blog: http://gregorybeamer.spaces.live.com ******************************************* | Think outside the box! | ******************************************* Gregory A. Beamer |
|
|
|
#3 |
|
Posts: n/a
|
On Nov 2, 10:34*am, "Gregory A. Beamer"
<NoSpamMgbwo...@comcast.netNoSpamM> wrote: > Jay <i...@thesitebuilders.us> wrote in news:cc8cf716-bfd4-46be-90c5- > 8e31d5cbf...@v36g2000yqv.googlegroups.com: > > > On my Login page, if I click the Register hyperlink, > > redirection does not occur. > > > Anybody see what I'm doing wrong? > > The way you have things set up, they are being directed to register and > then redirected to login, as all pages are set up as secure. Oops, of course. My simplified example was a little extreme. That is, I had set up all pages as secure even the registration page. Fixes that. By the way, I like the Microsoft article at http://support.microsoft.com/kb/316871 ("How to Control Authorization Permissions in ASP.Net) and had even bookmarked it earlier. J. Jay |
|
|
|
#4 |
|
Posts: n/a
|
Jay <> wrote in news:0ab9fc5c-eafe-43ef-9bea-
: > Oops, of course. My simplified example was a little extreme. > That is, I had set up all pages as secure even the > registration page. Fixes that. Worse things have been known to happen! Many times, I find the simplest answer is the one I am not thinking of. Peace and Grace, -- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA Twitter: @gbworld Blog: http://gregorybeamer.spaces.live.com Childhood Cancer Sites: ----------------------- Why I Believe in Christmas - http://bit.ly/2e5ZS0 Miranda in Nashville Parent - http://bit.ly/4u8zTE 46 Women Save Heads for Cancer - http://bit.ly/2Kzijw Gregory A. Beamer |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: Yahoo Messnger loging in problem | VanguardLH | Computer Support | 0 | 05-07-2009 09:21 PM |
| Windows XP Media Centre User Account Login Menu Lost | tezza | Computer Support | 6 | 12-07-2007 03:15 AM |
| Create Icon for Administrator account? | =?Utf-8?B?RXNraW1vc291bmQ=?= | Windows 64bit | 3 | 06-25-2007 02:49 PM |
| READ THIS | R. Jason Martin | Computer Support | 0 | 02-05-2006 08:32 AM |
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!WHAT IF!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | roach | Computer Support | 4 | 05-27-2004 11:57 PM |