My Register
Page is only available to authenticated users, so anyone typing http://localhost:52874/register.aspx
will not be able to get to it.
But I have a link to it from the login page, and when clicked it DOES
go to the register page without auth using Server.Transfer("Register.aspx", false);
Now that is something that I like, it means it can only be gotten to from the Login.aspx page, which is good.
But, when I press the Submit
button on the register page (after the transfer from login.aspx), it puts me back instantly to login.aspx
without any processing.
Then I have to add :
<location path="Register.aspx">
<system.web>
<authorization>
<allow users="?" />
</authorization>
</system.web>
</location>
To the web config to allow it to work, which means now its accessible by url. So why this behaviour, why allow me to go to it using Server.Tranfer
yet not let me process the button click?