You can add jQuery or other built-in libraries in Sitefinity CMS, for example KendoWeb.
You have two options to add a jQuery library to your widget, page, or master template:
Regardless of which option you choose, resources are added as embedded resources. Therefore, they are combined with all other Sitefinity CMS built-in library resources and loaded in the browser together.
To include Sitefinity built-in jQuery resources, you register the Telerik.Sitefinity.Web.UI assembly in the markup of your widget or page and add the following code in the markup of the widget, page, or template:
You include Sitefinity built-in jQuery programatically using the PageManager class. To use the PageManager,depending on whether you are adding the library to a widget, page, or template, add the following namespace in the beginning of the code-behind of the ascx.cs, aspx.cs, or master.cs file: using Telerik.Sitefinity.Modules.Pages;
using Telerik.Sitefinity.Modules.Pages;
Next, include a reference to Sitefinity's built-in version of jQuery library. To do this, use the PageManager class in the Page_PreRender method of your ascx.cs file code-behind:
This code registers the built-in version of jQuery, so that your widget can access the library.
Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.
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.
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.
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.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important