I have a HomeController with an Index action that shows the Index.aspx view. It has a username/password login section. When the user clicks the submit button, it POSTs to a Lo
Use TempData
to save state between requests. Use special attributes for convenience as shown here.
Few moments to mention:
TempData
. It's only supposed to save model state right before redirect and to retrieve it right after being redirected.