Demo web-app

Okej… nästan lite väl simpel, men den fungerar i alla fall.

Spara den som något bra med .asp i slutet (se till att ASP är igång på IIS’en också), sen kan man peka ut ett monitor-program (exempelvis OpsMgr) att monitorera den sidan. Om texten “INTE” är med så kan man skicka ett larm.

<html>
<body>
<font face="verdana, arial" size="2">
i räknar från 0 till 100.<br>
Om i är mer än 75 så kommer det upp<br>
en "felaktig" text…<br><br>
<%
Application("i") = Int(Application("i")) + 1
Response.Write "i = " & Application("i") & "<br><br>"

if Application("i") < 75 then
Response.Write "<font color=""green"">Fungerar finfint</font>"
else
Response.Write "<font color=""red""><b>Nu fungerar det INTE det minsta</b></font>"
end if

if Application("i") = 101 then
Application("i") = 0
end if
%>
</font>
</body>
</html>

One comment

  1. Pingback: snowland.se » Demo web-app v2

Post a comment

You may use the following HTML:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>