While reviewing the demo project for the xVal, a validation framework for ASP.NET MVC, I noticed Masterpage javascript references were wrapped in an PlaceHolder control:
<asp:PlaceHolder runat="server">
<script type="text/javascript" src="<%= Url.Content("~/scripts/jquery-1.3.2.min.js") %>"></script>
<script type="text/javascript" src="<%= Url.Content("~/scripts/jquery.validate.js") %>"></script>
<script type="text/javascript" src="<%= Url.Content("~/scripts/xVal.jquery.validate.js") %>"></script>
</asp:PlaceHolder>
I'm not sure I see the benefit of the PlaceHolder control over merely referencing the files directly:
<script type="text/javascript" src="/scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/scripts/jquery.validate.js"></script>
<script type="text/javascript" src="/scripts/xVal.jquery.validate.js"></script>
What am I missing?