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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.