如何创建Sitecore的编程方式,用户配置文件 [英] How to Create User profiles in Sitecore Programatically
问题描述
我要注册为Sitecore的网站的功能功能。我要动态添加Sitecore的用户/用户配置文件。
I want to functionality functionality of signup for sitecore website. I want to add sitecore users/user profiles dynamically.
如果有人能帮助我,这将是非常appriciated。
If anyone can help me, it would be highly appriciated.
推荐答案
Sitecore的使用为用户标准的ASP.NET成员资格提供这样你就可以创建用户基本的ASP.NET调用。
Sitecore uses the standard ASP.NET Membership provider for its users so you can create users with basic ASP.NET calls..
userName = string.Format(@"{0}\{1}", domain, userName);
Membership.CreateUser(userName, password, email);
域
变量是 Sitecore的
或外网
。
卡琳娜Apostolides拥有可以在这里找到有用的成员函数的集合:<一href=\"http://sitecore$c$csamples.blogspot.co.uk/2010/11/programmatically-addedit-users.html\">Programmatically添加和放大器;编辑用户
Karina Apostolides has a collection of useful membership functions available here: Programmatically Add & Edit Users
这篇关于如何创建Sitecore的编程方式,用户配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!