//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 = “firstname.lastname@example.org”;
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
This blog is a marketers view of what the Headless CMS is and how it could affect marketers in various business scenarios.
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.
Learn how to choose the right Kentico partner by using the Kentico Quality Expert Certification to your advantage.
#ADACompliance is in the news, and if Beyoncé was sued, you could be at risk too! Yes, it seems complicated, but ou… https://t.co/97UZC8aGow
Our GDPR guide demystifies the journey to compliance by detailing the steps of creating a compliance process based… https://t.co/Sp8sO2ztBU