Wednesday, 1 October 2014

How to give the css and js file refernce in the Visual webpart from the Custom folder In SharePoint 2013

Suppose,
I want to give reference of the css and some js file in my custom web part and it is stored in my custom folder of the master page directory.
Then just need to add the links as below:


For CSS : 
<link rel="stylesheet" type="text/css" href="/_catalogs/masterpage/[foldername]/[filename]"/>



For js File:
<script type="text/javascript" src="/_catalogs/masterpage//[foldername]/[filename]"></script>


No comments:

Post a Comment