M
Mike Gleason jr Couturier
(.NET MVC RC1)
Hi,
I have a login form in my master view. A user can login with that form from
every View (and the system stays on that view after a successful login or
not)
So let's say we have a contact-us page like this:
<!-- ---- Generated by the master view -------- -->
<form action="/About/Contact">
<<login form here>>
</form>
<!-- ---- Generated by the view using the master -------- -->
<form action="/About/Contact">
<<contact us form here>>
</form>
In the About controller, how can I differenciate a "login post" from a
"contact us post"?
Is there any [filter] for this to separated the two POSTs?
Is the only solution is to create a hidden field "Login=true" in the login
form?
(PS. Forget about the code duplication this architecture can bring)
Thanks! Mike
Hi,
I have a login form in my master view. A user can login with that form from
every View (and the system stays on that view after a successful login or
not)
So let's say we have a contact-us page like this:
<!-- ---- Generated by the master view -------- -->
<form action="/About/Contact">
<<login form here>>
</form>
<!-- ---- Generated by the view using the master -------- -->
<form action="/About/Contact">
<<contact us form here>>
</form>
In the About controller, how can I differenciate a "login post" from a
"contact us post"?
Is there any [filter] for this to separated the two POSTs?
Is the only solution is to create a hidden field "Login=true" in the login
form?
(PS. Forget about the code duplication this architecture can bring)
Thanks! Mike