我怎样才能创建ASP.Net MVC应用程序 [英] How can I create ASP.Net MVC app

查看:115
本文介绍了我怎样才能创建ASP.Net MVC应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



如何使用数据库第一类型项目创建Project。我有2种类型的顾客,一种是买家,第二种是卖家。而我作为管理员。



任何人都可以作为买家或卖家注册到网站。当他们登录系统时,它应该将用户转移到他的页面(对于买家,将有不同的页面,对于卖家,将有不同的页面)。



管理员将有不同的登录屏幕。他可以看到注册用户。他可以维护用户等。



对于客户,将有自定义登录屏幕。



如果有的话可以帮助我,然后它好。



提前谢谢。

解决方案

有一个名为<$的东西C $ C>成员。您所要做的就是定制。



会员资格和授权 [ ^ ]

这里有一篇文章 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 called Membership. 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.


这篇关于我怎样才能创建ASP.Net MVC应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆