The user controls are coupled with the application they are created for and cannot be reused in other applications. When creating your widget as a user control, you do not have to create additional projects and add them to the solution, because the development of the widget takes place in Sitefinity application's project only.
First you create an empty user control inside your application structure. Then, you extend it and the implement the widget's features in it. To do this, you must use the Web User Control template, provided by Visual Studio.
To create one, perform the following:
- Create folder named UserControls at the root of your application.
- From the context menu, click Add » New Item...
From the dialog click Visual C# » Web » Web User Control.
Name the control NewsRotator.ascx and click Add.
The empty user control is generated in folder UserControls.
Next, you must implement the main features of the NewsRotator. For more information, see Implementing the features of the control.