Search code examples
sharepoint-2010web-parts

How do I use a Script reference tag in a SharePoint VisualWebPart


<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>

I want to use the above ScriptTag in a SharePoint Visual webpart; any ideas on how I can achieve this?

As it is, the jQuery does not get triggered.

I am fairly new to SharePoint VisualWebParts.


Solution

  • A script tag in the masterpage was overriding the one on the page this was on.