AccordionNewsList widget: Create the web user control

You first need to create a new web user control in your project in Visual Studio. The web user control will encapsulate the logic of the functionality of the new user widget. To create a new web user control:

  1. In Visual Studio, open your Sitefinity CMS project.
  2. In the context menu of your project folder and click Add » New Folder.
  3. Name the new folder AccordionNewsList
  4. In the context menu of the AccordionNewsList folder click Add » New Item… » Web User Control.
  5. Name the web user control AccordionNewsList.ascx
  6. In the context menu of the AccordionNewsList folder click Add » New Item... » JavaScript File
  7. Name the new file AccordionNewsList.js

You now need to implement the markup  of the widget. For more information, see AccordionNewsList widget: Implement the markup.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?