looking for example of timer function
something that will help me get to track user's elapsed time since last
refresh.
tried this but not working with session values correctly in my class
================================================== ==============
Function NewText() As String
Dim vString As String=" "
Dim dtm As DateTime
dtm = DateTime.Now()
If context.session("ScreenTimer") is nothing Then
context.session("ScreenTimer") = Hour(dtm) * 60 + Minute(dtm)
else
context.session("TimeElapsed") = Hour(dtm) * 60 + Minute(dtm) -
cDBL(context.session("ScreenTimer"))
end if
If context.session("TimeElapsed") > 1 Then
vString= "new text here"
context.session("ScreenTimer") = Hour(dtm) * 60 + Minute(dtm)
End If
return vString
End Function