.ASP = Timer() and in .ASPX = ???

G

Guest

Hi there,

I'm searching a possible way to do something like this, but in .aspx:
VBscript
<%
Dim startTime, abc
startTime = timer()
abc = Round((timer - StartTime)*1000)
Response.write ("This page was generated in "&abc&" seconds.")
%>

How can I do this in .aspx ???

Thanks,
Jonadabe
 
H

Hans Kesting

Hi there,
I'm searching a possible way to do something like this, but in .aspx:
VBscript
<%
Dim startTime, abc
startTime = timer()
abc = Round((timer - StartTime)*1000)
Response.write ("This page was generated in "&abc&" seconds.")
%>

How can I do this in .aspx ???

Thanks,
Jonadabe

There is a DateTime.Now, which will deliver the current time.
You can subtract two DateTimes, which will give you a TimeSpan.

Hans Kesting
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top