If you write in root.master, in head section:

<script type="text/javascript" src="<%= ResolveUrl("~/Scripts/jquery-1.4.2.min.js")%>"></script>

a runtime we have error:

Server Error in '/' Application.
--------------------------------------------------------------------------------

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Source Error:


Line 63:             }
Line 64:
Line 65:             base.OnInit(e);
Line 66:
Line 67:             if (showExecutionTimer)


Source File: C:\_RedZone\_Sources\Visual Studio 2010\Projects\nopCommerce\NopCommerceStore\Controls\BaseNopPage.cs    Line: 65

Stack Trace:


[HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).]
   System.Web.UI.ControlCollection.Add(Control child) +8696951
   System.Web.UI.PageTheme.SetStyleSheet() +303
   System.Web.UI.Page.OnInit(EventArgs e) +8871980
   NopSolutions.NopCommerce.Web.BaseNopPage.OnInit(EventArgs e) in C:\_RedZone\_Sources\Visual Studio 2010\Projects\nopCommerce\NopCommerceStore\Controls\BaseNopPage.cs:65
   System.Web.UI.Control.InitRecursive(Control namingContainer) +140
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +480


Why?