Skip to main content

The ScriptlinkScriptLink control works only relative to the "_layouts/15"_layouts/15 Folder, and "~".

The ~-Placeholderplaceholder for URLs workworks only on defined places in SharePoint-Controls controls (unless you do the replacement by yourself in your control). That are are the reasonyreasons why your approaches don´t work. So

So either place your jqueryjQuery-Files in the "Layouts"layouts-Pathpath of your SharePoint-Farm farm, or use a serverrelativeserver relative or absolute Pathpath in the Attribute<script src="..."> Attribute.

The Scriptlink control works only relative to the "_layouts/15" Folder, and "~"-Placeholder for URLs work only on defined places in SharePoint-Controls (unless you do the replacement by yourself in your control). That are are the reasony why your approaches don´t work. So either place your jquery-Files in the "Layouts"-Path of your SharePoint-Farm, or use a serverrelative or absolute Path in the Attribute.

The ScriptLink control works only relative to the _layouts/15 Folder.

The ~-placeholder for URLs works only on defined places in SharePoint controls (unless you do the replacement by yourself in your control). That are are the reasons why your approaches don´t work.

So either place your jQuery-Files in the layouts-path of your SharePoint farm, or use a server relative or absolute path in the <script src="..."> Attribute.

Source Link

The Scriptlink control works only relative to the "_layouts/15" Folder, and "~"-Placeholder for URLs work only on defined places in SharePoint-Controls (unless you do the replacement by yourself in your control). That are are the reasony why your approaches don´t work. So either place your jquery-Files in the "Layouts"-Path of your SharePoint-Farm, or use a serverrelative or absolute Path in the Attribute.