Share Syncfusion client resources like Scripts and Stylesheets with multiple projects?
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.
Common Files folder holds the scripts and stylesheets required for project 1 and project 2.
Step 2: Copy the jQuery and required Syncfusion scripts from the installed location inside scripts folder.
Step 3: Copy the required stylesheets files from the installed location to content folder.
Step 4: Right-click on the scripts folder in your project. Click Add > Existing Item.
Step 5: Select the required files to be added and click Add button.
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.
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.
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.
Note:
A new version of Essential Studio for ASP.NET is available. Versions prior to the release of Essential Studio 2014, Volume 2 will now be referred to as a classic versions.The new ASP.NET suite is powered by Essential Studio for JavaScript providing client-side rendering of HTML 5-JavaScript controls, offering better performance, and better support for touch interactivity. The new version includes all the features of the old version, so migration is easy.
The Classic controls can be used in existing projects; however, if you are starting a new project, we recommend using the latest version of Essential Studio for ASP.NET. Although Syncfusion will continue to support all Classic Versions, we are happy to assist you in migrating to the newest edition.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls. If you have any queries or require clarifications, please let us know in the comments section below.
You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!