Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Login form
Message
De
23/12/2013 12:37:18
 
 
À
22/12/2013 10:30:51
John Baird
Coatesville, Pennsylvanie, États-Unis
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:
01590886
Vues:
43
>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

Edit: Also, your model for the view is a Xamlware.Models.Users object. Your postback method should probably take that as a parameter.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform