The sequence of actions that I am trying to accomplish is below.
Context: user can add products to its own account.
- User tries to add a specific product. (He/she is not login at this point.)
- In the code behind, I need to redirect the user to login page before I can add the product to user’s account.
- After login, how do I take the system back to the logic to finish up the action in step 1.
Thanks.
When you redirect to the login page, add the original URL in the querystring.
After a successful login, send a to the URL from the querystring.