Newbie setup question where to put the RenderIncludes


#1

On http://miniprofiler.com/ it tells me to put the RenderIncludes() as the last item of the <BODY />, however, the sample included with the code for WebForms has it as the last item in the <HEAD />. Since I cannot get either of these to work for me at present (I don’t have SQLLite to run the WebForms example, and trying to implement with my own code after following the steps on the website main page doesn’t render anything … I’ll start a separate question for this one). So where should it go to get it to work?

From Master.Master in the example code

<head runat="server">
    <title></title>
    <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
    <asp:ContentPlaceHolder ID="HeadContent" runat="server">
    </asp:ContentPlaceHolder>

    <%= StackExchange.Profiling.MiniProfiler.RenderIncludes() %>

</head>

From the web site example:

<body>
  ...
  @MiniProfiler.RenderIncludes()
</body>

#2

this is actually a bug on the website


#3

where does it say that? I just re-read the site and can not see anywhere suggesting it should be in HEAD


#4

opps. Typo! Got those backwards. The example code has it in the <HEAD /> and the website shows it at the end of the <Body/>. Updating question.