Does MiniProfiler work in ASP.NET MVC2?
-
12-01-2021 - |
سؤال
Does The StackExchange MiniProfiler http://code.google.com/p/mvc-mini-profiler/ work in ASP.NET MVC2? If so, how? When adding MiniProfiler to the project, what is the MVC2 equivalent of:
@MvcMiniProfiler.MiniProfiler.RenderIncludes()
المحلول
Yes. See the FAQ: http://code.google.com/p/mvc-mini-profiler/wiki/FrequentlyAskedQuestions
That is the razor syntax. The equivalent for Web Forms is
<%: MvcMiniProfiler.MiniProfiler.RenderIncludes() %>
لا تنتمي إلى StackOverflow