asp.net - Diff between <head id="Head1" runat="server"> and <asp:ContentPlaceHolder runat="server" ID="HeadContent"> -
In looking for a better understanding of how an MVC project should define Javascript and CSS is included. I am working with sample code, which is also defined as:
& lt; Head id = "head1" runat = "server" & gt; & Lt; Title & gt; & Lt; Asp: ContentPlaceHolder ID = "TitleContent" runat = "server" /> Affiliate Checkout & lt; / Title & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = ISO-8859-1" /> & Lt; Meta http-equiv = "pragma" content = "no-cache" & gt; & Lt; Script type = "text / javascript" src = "/ script / jquery.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "/ script / jquery-ui-1.7.2.custom.min.js" & gt; & Lt; / Script & gt; . . . & Lt; Asp: ContentPlaceHolder runat = "server" id = "head content" & gt; & Lt; / Asp: ContentPlaceHolder & gt; & Lt; / Head & gt;
I am reading that all pages viewed on this masterpage will get jquery and jqueryUI and, in addition, content placeholder head content tags to each page.
Troubleshooting I have a specific problem where the 'Praha No-Cash' tag is included in my rendered page - as you see, it is defined in upper level header section. Other .js and .css elements are making it in the provided page, so it is very confusing to see that there is no no-cache tag.
When 'View Generated Source' is executed - 'Chanchet' no-cache 'exists.
This could be because the behavior is not meta tags properly closed?
Comments
Post a Comment