//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
The good news is that the same mechanisms that we use to recover items on those platforms are also available in Kentico.
The new 404 Conference is all about learning from failure. Find out what I am most excited to learn this year in Las Vegas.
In this post, we will cover 5 of the top new features and how they will help make your marketing simpler and more effective.
Learn five specific things you can do to help improve page performance in Kentico.
We added to our Army of Nerds with our newest Senior Infrastructure Engineer this week. Welcome to the wizard life,… https://t.co/1CRAemN76u
Today, and every day, all of us here at Bit-Wizards salute those who have served our country in the armed forces. W… https://t.co/9OuWVo7ztg