Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It may be that the JQuery file can't be found, try this for the script reference:</p> <pre><code>&lt;script src="&lt;%= Url.Content ("~/Scripts/jquery-1.2.6.js") %&gt;" type="text/javascript"&gt;&lt;/script&gt; </code></pre> <p>The Url.Content will build the correct path regardless of whether the app is running in the root or a sub-directory.</p> <p>Also, if you've installed the hot-fix for the JS intellisense, you can use this in addition to the above:</p> <pre><code>&lt;% if (false) { %&gt; &lt;!-- Don't wrap this is a Url.Content call, it's like this so we get intellisense! --&gt; &lt;script src="../../Scripts/jquery-1.2.6-vsdoc.js" type="text/javascript"&gt;&lt;/script&gt; &lt;% } %&gt; </code></pre> <p><strong>Edit:</strong></p> <p>Since the release of the RC 1 Refresh, there's been a know bug about placing elements with code blocks in the header, Philip Haacked has a nice <a href="http://haacked.com/archive/2009/01/27/controls-collection-cannot-be-modified-issue-with-asp.net-mvc-rc1.aspx" rel="noreferrer">article</a> about solving it...</p> <p><strong>Edit 2:</strong></p> <p>Apparently this has been fixed since RC 2 was released...</p> <blockquote> <p>• Code nuggets that are direct children of the head element do not cause an exception if the runat="server" attribute is added to them.</p> </blockquote> <p><strong>Edit 3:</strong></p> <p>The hot-fix referenced earlier is only applicable to VS2008 and is available <a href="http://code.msdn.microsoft.com/KB958502/Release/ProjectReleases.aspx?ReleaseId=1736" rel="noreferrer">here</a> - check out the blog post by the VS Web Dev Team <a href="http://blogs.msdn.com/webdevtools/archive/2008/02/08/jscript-intellisense-working-with-jquery.aspx" rel="noreferrer">here</a> for details. VS2010 has it built in.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload