I am just a beginner of ASP.NET MVC. I have done some page by asp.net mvc but now I need to do form log in by using MVC. The login user name and password are store in database. Can anyone propose or share me some idea of how to do that? I really have no idea about that. Thanks.
-
1if possible you can google it for examples i think u can find many of them.Karan Shah– Karan Shah2011-11-23 06:08:23 +00:00Commented Nov 23, 2011 at 6:08
-
1daniweb.com/web-development/aspnet/threads/256237 is the link that can help u.Karan Shah– Karan Shah2011-11-23 06:10:49 +00:00Commented Nov 23, 2011 at 6:10
-
@KaranShah : I search in google ready. But the solution is not fix with what I need :).Nothing– Nothing2011-11-23 06:10:51 +00:00Commented Nov 23, 2011 at 6:10
-
2asp.net/mvc/tutorials/… try this outKaran Shah– Karan Shah2011-11-23 06:52:27 +00:00Commented Nov 23, 2011 at 6:52
Add a comment
|
2 Answers
Since you are new to Asp.net MVC, I would suggest you to follow a tutorial which will provide a great insight of how things shape up in this new framework. You can follow the Tutorial MVC Music Store from asp.net
It contains all the basic ingredients of a web application from user authentication to CRUD operations.
10 Comments
Nothing
As I read it, the account information of that not store in database, right?
Pankaj Upadhyay
They are stored in the database only. But it uses the default membership provided by .NET
Nothing
Can I change the aspnet_User and some other table to my own table in database?
Pankaj Upadhyay
no you can't. For that you will have to implement your own custom provider. To learn more about this, read : Implementing a Membership Provide and How to: Implement a Custom Membership User
Nothing
So I really cannot modify the default membership provider that provide by asp.net MVC? I think if create new, it is very complicated for me.
|
You may configure your web-app via Form Authentication. Take a look at tutorial - Authenticating Users with Forms Authentication. and SO thread - User authentication and authorisation in ASP.NET MVC
3 Comments
Nothing
I have table Customer, and it store ID, username and password of user. I want to query it and take it to verify with the user name and password that the user fill in the form of view. I don't want to use membership provider of ASP.NET. So can you tell me, how can I do beside that? Thanks.
KV Prajapati
@socheata - Please read this post and then decide which auth system you want to use. blogs.teamb.com/craigstuntz/2009/09/09/38390
Nothing
Can I change the aspnet_User and some other table to my own table in database?