//instantiate tree provider
UserInfo ui = UserInfoProvider.GetUserInfo(CMSContext.CurrentUser.UserID);
tree = new TreeProvider(ui);
TreeNode node = tree.SelectSingleNode([TreeNode ID]);
if(node != null)
//Create the event attendee
//Make sure the attendee isn't already registered for the event
eai = EventAttendeeInfoProvider.GetEventAttendeeInfo(node.NodeID, dr["email"].ToString());
//Check if an attendee is already registered
if (eai == null)
//Add the attendee
eai = new EventAttendeeInfo();
// Set the properties
eai.AttendeeEmail = “email@example.com”;
eai.AttendeeEventNodeID = Convert.ToInt32(dsEventNode.Tables.Rows["NodeID"].ToString());
eai.AttendeeFirstName = "Francis";
eai.AttendeeLastName = "Fratelli";
eai.SetValue("Title", "Toupee King"; // This is a custom field
eai.SetValue("OrderId", 123); // This is a custom field
// Save the attendee
Director of Magic
Read on to find out which Kentico partner is right for your project!
There are time and effort involved in any software update. However, the time and effort it costs, in the long run, are far less if you keep your software up-to-date. In this blog, I detail the three most important reasons to upgrade a Kentico website.
What does a Kentico website cost? To keep it simple, I am going to break the cost categories down into three types of sites: Standard, Medium, and Large.
This blog is a marketers view of what the Headless CMS is and how it could affect marketers in various business scenarios.
Talking Parents increased their net new user subscriptions by 40% after the Bit-Wizards team worked their magic on… https://t.co/KTXGUvtJ1H
We are so excited to be named on the INC. Magazine Best Workplaces List for the 3rd consecutive year! Read the ful… https://t.co/urSULNpUDt