Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Login page won't redirect to a Register (new account) page

 
Thread Tools Search this Thread
Old 11-01-2009, 02:10 PM   #1
Default Login page won't redirect to a Register (new account) page


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
  Reply With Quote
Old 11-02-2009, 04:34 PM   #2
Gregory A. Beamer
 
Posts: n/a
Default Re: Login page won't redirect to a Register (new account) page
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
  Reply With Quote
Old 11-02-2009, 07:39 PM   #3
Jay
 
Posts: n/a
Default Re: Login page won't redirect to a Register (new account) page
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
  Reply With Quote
Old 11-04-2009, 10:49 PM   #4
Gregory A. Beamer
 
Posts: n/a
Default Re: Login page won't redirect to a Register (new account) page
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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46