Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Excuse me, I do not know English well.</p> <p>I think there are some problem in your code.</p> <ol> <li><p>Use <strong>single quote(')</strong> instead of <strong>double quote(")</strong> before and after of server-side assignment; Because <strong><em>ResolveUrl</em></strong> method use <strong>double quote</strong> for its <strong><em>string</em></strong> argument and this sequence of double quotes, is against of XHTML Well-Form ness rules.</p></li> <li><p>Use <strong>equal sign(=)</strong> instead of <strong>hash sign(#)</strong>. Hash sign should use in <strong>data-binding</strong> expressions.</p></li> <li><p>You can pass the full resource path, to <strong><em>ResolveUrl</em></strong> method as its argument.</p></li> <li><p>If the <strong>Scripts</strong> folder is in the root of the website, there is no need to use <strong><em>ResolveUrl</em></strong>; you can just use <strong><em>"/Scripts/jquery-1.7.2.min.js"</em></strong> as value of the <strong><em>src</em></strong> attribute.</p></li> <li><p>To ensure the accuracy and integrity of <strong>jQuery</strong>, download it again from its official website.</p></li> <li><p>There is some JavaScript compatibility issues in IE 10. Use <strong>X-UA-Compatible</strong> meta tag to regulate IE.</p></li> </ol> <p>Your code after apllying the previous points:</p> <pre><code>&lt;head runat="server"&gt; &lt;meta http-equiv="X-UA-Compatible" content="IE=9" /&gt; &lt;script src='&lt;%= ResolveUrl("~/Scripts/jquery-1.7.2.min.js") %&gt;' type="text/javascript"&gt;&lt;/script&gt; &lt;asp:ContentPlaceHolder ID="head" runat="server"&gt; &lt;/asp:ContentPlaceHolder&gt; </code></pre> <p>Or (without server-side path resolution)</p> <pre><code>&lt;head runat="server"&gt; &lt;meta http-equiv="X-UA-Compatible" content="IE=9" /&gt; &lt;script src="/Scripts/jquery-1.7.2.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;asp:ContentPlaceHolder ID="head" runat="server"&gt; &lt;/asp:ContentPlaceHolder&gt; </code></pre> <p>Good Luck!</p> <p>Some Helpful Links:</p> <ul> <li><a href="http://msdn.microsoft.com/en-us/library/jj676915.aspx" rel="nofollow">Official jQuery download page</a></li> <li><a href="http://jquery.com/download/" rel="nofollow">Specifying legacy document modes in IE</a></li> </ul>
    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. This table or related slice is empty.
    1. This table or related slice is empty.
    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