Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Login form
Message
De
23/12/2013 12:45:20
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
23/12/2013 12:37:18
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01590776
Message ID:
01590887
Vues:
51
>>Figured it out. The userController was firing the index method and not login. When I added an index override with [httpPost] it works like a charm. Thanks for the help. There will be many more requests I'm sure... LOL
>
>Since the view you are using is the index view, and you aren't specifying a different post action in your begin form, it will post back to the same controller/action that originated the view. If you want to direct it to the login on the postback, use the overload of the BeginForm method that specifies the controller and action: http://msdn.microsoft.com/en-us/library/dd492692%28v=vs.118%29.aspx

Thanks... I ended up watching a series of pluralsight courses on asp.net mvc and learned a lot about how it all works. Trying to progress....
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform