2

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.

4
  • 1
    if possible you can google it for examples i think u can find many of them. Commented Nov 23, 2011 at 6:08
  • 1
    daniweb.com/web-development/aspnet/threads/256237 is the link that can help u. Commented Nov 23, 2011 at 6:10
  • @KaranShah : I search in google ready. But the solution is not fix with what I need :). Commented Nov 23, 2011 at 6:10
  • 2
    asp.net/mvc/tutorials/… try this out Commented Nov 23, 2011 at 6:52

2 Answers 2

3

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.

Sign up to request clarification or add additional context in comments.

10 Comments

As I read it, the account information of that not store in database, right?
They are stored in the database only. But it uses the default membership provided by .NET
Can I change the aspnet_User and some other table to my own table in database?
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
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.
|
3

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

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.
@socheata - Please read this post and then decide which auth system you want to use. blogs.teamb.com/craigstuntz/2009/09/09/38390
Can I change the aspnet_User and some other table to my own table in database?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.