User control setup in Kentico

Often times when adding custom controls to Kentico I will choose to use a plain user control over creating a new web part. The benefit of creating a web part is that you can allow the designer/content editor to set properties on your control from the design interface. If you do not require this ability it is simpler to add your user control using the "User control" web part located under the "General" section. All you need to do is set the virtual path to your user control (e.g. ~/Controls/MyControl.ascx). One thing you should add to any control/web part that executes code on load is a "StopProcessing" check.

2
Comments
2
Votes