Creating an empty user control

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:

  1. Create folder named UserControls at the root of your application.
  2. From the context menu, click Add » New Item...
  3. From the dialog click Visual C# » Web » Web User Control.

  4. 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.

See Also

Next steps

+1-888-365-2779
sales@sitefinity.com

Related topics:

Feedback

How useful is this article?

Tell us more

Submit
Your message was successfully sent.

We appreciate your feedback.

Your message could not be sent.

OK