How to create a login page using ASP.NET MVC 3 Razor (Addendum - Database Connection)

Опубликовано: 03 Март 2026
на канале: jalbao
34,105
98

This video is an addendum to the "MVC 3 Razor Login Example" five part series. I made this video based on a request for showing how to authenticate the user against a database.

This example uses a SQLExpress database.

This example is purely for demonstration purposes regarding how your MVC code might look when it attempts to authenticate a user. More specifically, this video demonstrates how you your MVC code will call a method that lives outside of your MVC Controller code to determine whether or not a Username and Password is valid.

If you are interested in an Entity Framework example, Tyler Palesano (Onosa) posted his solution here https://bitbucket.org/Onosa/mvc-3-raz...