Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Login form
Message
From
23/12/2013 12:37:18
 
 
To
22/12/2013 10:30:51
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Other
Title:
Environment versions
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01590776
Message ID:
01590886
Views:
41
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform