I am counting how many seconds it takes to go from aspx page 1 to page 2. This time is not reflecting a real clock.. Where is the bug?
on page 1 I have:
Session('sessioncreated') = Now.Ticks
on page 2 I have:
Dim diff As Long = 0 If Not Session('sessioncreated') Is Nothing Then diff = Now.Ticks - Session('sessioncreated') End If Dim timediff As Integer = TimeSpan.FromTicks(diff).Seconds
It would help to know what issues you’re seeying… Regardless, I think you should change:
to