)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to share Syncfusion client resources like Scripts and Stylesheets with multiple projects ?

Platform: ASP.NET Web Forms |
Control: General |
Published Date: June 29, 2018 |
Last Revised Date: May 14, 2019

Description

To share the client resources like Syncfusion scripts and styles to different application from a common location.

Solution

Add a common folder for multiple projects and refer required scripts and stylesheets to render Syncfusion controls from this folder.

Step 1: Create two or more projects. Create a common folder to copy required scripts and stylesheets within these projects as shown as follows. Theme studio

Common Files folder holds the scripts and stylesheets required for project 1 and project 2.

Theme studio

 

 

 

Step 2: Copy the jQuery and required Syncfusion scripts from the installed location inside scripts folder.

assert source

 

Step 3: Copy the required stylesheets files from the installed location to content folder.

 

themes

 

Step 4: Right-click on the scripts folder in your project. Click Add > Existing Item.

 

adding items

 

Step 5:  Select the required files to be added and click Add button.

 

web all source

Similarly, right-click on the content folder and refer stylesheets from the common folder.

 

Step 6: Refer this path in the master page of your project.

 

view page

 

Note:

In MVC, add these references to Layout page and in Asp.Net, add to Site.Master page.

 

 

 

Step 7: Add the required code to render Syncfusion controls based on your project.

 

  @Html.EJ().DatePicker("date")

 

Control will be rendered as shown as follows.

 

datepicker

By using this way, refer required files from common folder for multiple projects. While upgrading your product version, replace this common folder with the new script and styles.

 

 

 

 

 

 

 

 

 

 

2X faster development

The ultimate ASP.NET Web Forms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon