In my MVC4 login view, I have several sections defined:
- login - /User/Login#login or - /User/Login
- register - /User/Login#register
- lostpassword - - /User/Login#lostpassword
The JS on the page picks up the right form area to present.
Everything works fine for login - validation, etc. However if the registration fails, how do I return to the view with the added #register
parameter?
-- Update --
I forgot to mention that this is from a controller and all validation errors need to be passed back to it. So, return Redirect("...")
doesn't work