Thursday, March 01, 2012

Script CSS registration in SharePoint

Today I spent couple of my valuable hours to get to know more about control and in SharePoint. When you set the "Localize" parameter of the above control "false",you need to keep all your "javascript or CSS files" under 1033 folder of 14 hive.Even I tried my luck on useing $SPUrl on these control and set te value ~SiteCollection. In my sitecollection I put all my css and js file.Still I could not able to get the things works for me. Later,I attach these branding related stuffs in my Custome Solution Package.(.wsp) Then reference the javascript file So I ignore the parameter Localize,otherwise my page will not be used the javascript.Instead it will check files inside 1033.