我有以下代码
Dim time As Date
Dim currentHour As Integer
Dim currentMinute As Integer
time = DateTime.Now
currentHour = time.Hour
currentMinute = time.Minute
If currentHour > 10 AndAlso currentMinute > 8 Then
Response.Redirect("holdingpage.aspx")
Else
'do nothing
End If
基本上,如果当前时间在上午 10.08 之后,我想重定向到另一个页面,但没有任何反应。