Configuring Stopeo service under ASP.NET

First of all, what is Stopeo? With stopeo, You can easily check your server performance and keep an eye for any overloads. So...

*How to use stopeo.com from Wojtek Siudzinski on Vimeo.

So now when you know what is all about I will give you a tip how to make Stopeo works with ASP.NET web sites, as it does in my case with SiteAdmin CMS generated sites.

Stopeo requires just two things, to know when page render started and when it’s finished, so implementation is simple, insert following code into server side script part, for example like this:

<script runat="server">
Protected stopeoStart As DateTime
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
  stopeoStart = Now End Sub
</script>

Then,  in very bottom, of the page you just put following code:

<!-- stopeo: <%=Now.Subtract(stopeoStart).TotalSeconds%>s -->

So what it does is returning you time span in seconds format, like 0.000… Now you can feed Stopeo with it.

0 comments:

Post a Comment

About...

…SiteAdmin CMS is a powerful but simple, extremely easy to use, low priced, easy to deploy content management system. SiteAdmin CMS offers a rich set of features despite its low price point. It is a leader in its price and feature class…