Archive

Posts Tagged ‘SP.js in aspx page’

Custom ASPX page in SharePoint 2013

June 18, 2015 Leave a comment

Hi All,

We might be having a scenario to create custom ASPX Wiki page in SharePoint without inheriting SharePoint branding.In this case sp.js reference to be added explicitly in order to connect to SharePoint Lists etc. Below are the files to be referred in the HEAD section of ASPX page,so that you can make use of clientcontext and other SP.JS functionalities.

<script type=”text/javascript” src=”/_layouts/sp.init.js”></script>
<script src=”/_layouts/1033/init.js” type=”text/javascript”></script>
<script src=”/_layouts/MicrosoftAjax.js” type=”text/javascript”></script>
<script src=”/_layouts/sp.core.js” type=”text/javascript”></script>
<script src=”/_layouts/sp.runtime.js” type=”text/javascript”></script>
<script src=”/_layouts/SP.UI.Dialog.js” type=”text/javascript”></script>
<script src=”/_layouts/sp.js” type=”text/javascript”></script>
<script type=”text/javascript” src=”/_layouts/ScriptResx.ashx?name=sp.res&culture=en-us”></script> 
Advertisements