How do i use MiniProfiler.Settings.CustomUITemplates

孤街浪徒 提交于 2019-12-02 00:46:16
Yaakov Ellis

CustomUITemplates allow you to supply your own version of any of the files that are part of the UI project - the files that handle all of the client-side operations.

The default is to use these files as they are included in the .net project (submodule included in StackExchange.Profiling.ui. If you include files with the exact same name in the folder specified as the CustomUITemplates folder (defaults to ~/App_Data/MiniProfilerUI, but you can change it to something else if you like) then it will use those files instead.

In your example, you want to change the place in which the results are being rendered on the client side. To do this, you would want to copy the existing include.js file, put it in your templates folder, and then change the functionality there to output results to a table in your page, rather than the built in functionality (you might want to start by looking at modifying the buttonShow function in include.js and change it to process the json the way that you would like).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!