Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
can i add custom properties to members using C# in umbraco
have a look at this post http://charlesafford.com/umbraco-membership-provider.aspx :)
yes you can ;
MemberType mt = MemberType.GetByAlias("name of member type here");
Member m = Member.MakeNew(fullname,mt, new umbraco.BusinessLogic.User(0));
m.Password = "pwvalue";
m.Email = "email";
m.LoginName = "emailorusername;
//custom property fullName
m.getProperty("fullName").Value = FirstName.Text + " " + LastName.Text;
m.XmlGenerate(new System.Xml.XmlDocument());
m.Save();
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
adding properties to members using C#
can i add custom properties to members using C# in umbraco
have a look at this post http://charlesafford.com/umbraco-membership-provider.aspx :)
yes you can ;
MemberType mt = MemberType.GetByAlias("name of member type here");
Member m = Member.MakeNew(fullname,mt, new umbraco.BusinessLogic.User(0));
m.Password = "pwvalue";
m.Email = "email";
m.LoginName = "emailorusername;
//custom property fullName
m.getProperty("fullName").Value = FirstName.Text + " " + LastName.Text;
m.XmlGenerate(new System.Xml.XmlDocument());
m.Save();
is working on a reply...