question

CoreyFleig-6304 avatar image
0 Votes"
CoreyFleig-6304 asked CoreyFleig-6304 commented

How does Classic ASP.NET invoke the Register/Login page?

This is an unfair question to ask, but I'm hoping to just get a big picture.

Microsoft wrote an example for a webstore in ASP.NET, and all the code is in:
github.com/Project6/Wingtip-Toys
and the application is built with individual user account authentication.

I'm studying all the code to learn how it works. For now, is there a simple way to understand one thing?

In the ShoppingCart.aspx.cs file, there's a line:

Response.Redirect("Checkout/CheckoutStart.aspx");

When the debugger gets to that line, when I step into it the first thing it does is run the Account/Login.aspx routine.

How does it run that first? Where's the call to run the register/login page first? I don't see how it does that!!

Again, it's an unfair question without going through all the code, but I wonder if there's a general principle at work here.
Any comment or insight would be appreciated.

dotnet-aspnet-general
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I assume Wingtip toys is pretty old and I assume it uses Membership Provider and Forms Authentication. Basically, the user must login before accessing secured resources. Essentially the forms auth cookie must exist. CheckupStart.aspx is probably protected but the request does not have the auth cookie. The Forms Authentication API redirects to the login page. The login page configuration is stored in the web.config.



0 Votes 0 ·


Excellent. That's what I was wondering. Makes sense. THanks very much.
Yes - the example is 7 years old - right now I can't seem to find a C# example
that calls PayPal. Just this one!

Again, thanks!

0 Votes 0 ·

1 Answer

CoreyFleig-6304 avatar image
0 Votes"
CoreyFleig-6304 answered CoreyFleig-6304 commented

Excellent. That's what I was wondering. Makes sense. THanks very much.
Yes - the example is 7 years old - right now I can't seem to find a C# example
that calls PayPal. Just this one!

Again, thanks!

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Admin - can you delete this "answer"? I clicked wrong!

0 Votes 0 ·