I am running a loop which fetches values constantly. I need to delay the server so that the values can refresh before the next fetch goes through. With no delay they values never show up and it sits there in an endless loop. Here is the code for vb.net. How do you change this for asp.net?
Private Sub delay(ByVal dblsecs As Double)
'Const OneSec As Double = 1.0# / (1440.0# * 60.0#)
'Dim dblWaitTil As Date
'Now.AddSeconds(OneSec)
'dblWaitTil = Now.AddSeconds(OneSec).AddSeconds(dblsecs)
'Do Until Now > dblWaitTil
' Application.DoEvents()
'Loop
End Sub
...
Go to the complete details ...