更新时间:2022-10-26 15:51:17
有一个名为成员。您所要做的就是定制。
会员资格和授权 [ ^ ]
这里有一篇文章 ASP.NET MVC应用程序中自定义窗体身份验证的初学者教程 [ ^ ]
这是一个很好的解决方案。但是ASP.NET MVC中的Area是什么,我有这样的数据库表。
用户表
Userid int
用户名varchar
密码varchar
usertype int
isuseractive bit
isdeleted bit
createddate datetime
editdate datetime
ipaddress varchar
用户类型表
id int
usertype varchar
这里只有两种类型的买家和卖家。
我想买家登录时他应该转移到他的区域,当卖家登录他应该转移到他的区域。
Hi all
How can I create Project with database first type project. I have 2 type of customer one is buyer and second is seller. And I as Administrator.
Any one can register to website as buyer or seller. When they login to the system it should transfer the user to his page ( for buyer there will be different page and for seller there will be different page).
Administrator will have different login screen. He can see registered user. He can maintain user etc.
For Customer there will be custom login screen.
If any one can help me then its good.
Thanks in advance.
There's a thing calledMembership
. All you have to do is customization.
Membership and Authorization[^]
And here an article A Beginner's Tutorial on Custom Forms Authentication in ASP.NET MVC Application[^]
That's a good solution. But what is Area in ASP.NET MVC and I have data base table like this.
user table
Userid int
username varchar
password varchar
usertype int
isuseractive bit
isdeleted bit
createddate datetime
editdate datetime
ipaddress varchar
user type table
id int
usertype varchar
here only two type will be there buyer and seller.
I would like when buyer login he should be transfer to its area and when seller login he should transfer to his area.