private Section BuildSection(SectionGroup sectionGroup) { var section = new Section { Name = "About", ID = sectionGroup.CreateUniqueControlId() }; var control = sectionGroup.View.LoadControl("/Apps/SampleApp/About.ascx"); //Get the name of the control if it implements the INamed inferface if (control is INamed) { section.Name = (control as INamed).Name; } section.AddControl(control); return(section); }