col seguente codice mi aspetto un conto alla rovescia invece mi toglie un secondo è basta, dove sbaglio?
codice:Private Tempo As New TimeSpan(0, 3, 0)codice:Protected Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick cronometro = True If Me.Literal12.Text = "00:00:00" Then cronometro = False Timer1.EnableViewState = False Timer1.Enabled = False Panel1.Enabled = False Response.Redirect("Fine.aspx") Else Timer1.EnableViewState = True Timer1.Enabled = True Tempo = Tempo.Subtract(New TimeSpan(0, 0, 1)) Literal12.Text = Tempo.ToString ' Literal12.Text -= 1 End If End Sub

Rispondi quotando