1
votes

Can we use javascript in sharepoint 2010 web part using visual studio 2010?

2

2 Answers

0
votes

You can utilize JavaScript in your web parts just as you would HTML or CSS. As for it's location, a common place to store these files is in the Style Library. You would then create a reference to the JavaScript file in your masterpage or page layout (depending on your needs) where it would be available at runtime.

I would recommend using SharePoint Designer for managing and versioning these style-related files.