Click here to Skip to main content
15,794,850 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I am new to MVC. I was trying to learn on how to use Stored Procedures in MVC 3.
I have a view called Login with 2 textboxes, userId and Password,and a button btnLogin and a corresponding table in SQL Server called tbl_login with the same column names.
On the click of the button, I want to execute a stored procedure that validates the login and redirects to the appropriate page, as we used to do in ASPX web applications. How to do the same in MVC3? Everywhere I go, I found entity frameworks that use code first approach and tables are created using this, but nowhere it is mentioned that if we already have tables and procs, then how to use them?

Please help........thanks in advance.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900