Using Client Side Probes with Web Forms


After reading through this blog post, I was excited to see how to create client side probes for profiling certain client side activities.

The example for doing this in an MVC app was given in the blog post but I was wondering if it was possible to do this with Web Form application? I have gone over the web form example and I did not see anything.

Thanks in advance for any help.


Sure … nothing is stopping you from using the exact same code in a WebForms app


Ok, I know this is going to sound dumb, but I have tried a few ways to try and get this to work and I have not seen a clean way to do the automatic probes that you talk about with adding @this.InitClientTimings(); to a MVC page.

If I enter some code like this into my page directly, I can get probes to show up.

<script type="text/javascript">mPt=function(){var t=[];return{t:t,probe:function(n){t.push({d:new Date(),n:n})}}}()</script>

Is it possible to get the automatic probes?

Thanks again for a great tool and the support.


most of the “automatic” ones only show up in browsers with client timing api, latest chrome/ie/firefox