开发者

How to add properties to users in ASP.NET MVC2?

After I have the initial ASP.NET MVC 2 website and the default Membership provider up, how do I start adding features speci开发者_运维知识库fic to an user? Like, say, we want to let users choose their favorite products and we want to remember these choices somehow or add a favorite color property to an user?

Where should these customizations go and how should they be associated with the out-of-the-box membership system?


You would typically use profiles to store user related meta data.

here is a link to a fine example of implementing profiles in asp.net and while not MVC specific, will provide you with the background you need to take the few additional steps in using profiles in MVC which can be found here

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜