Merhaba
Bir Aspx WebFormum Var (vb.net ile Yazıyorum) Ve Bir tanede JavaScript Kodum Var.
Timer Her 1 saniyede Bu javaScript Kodunu Tetiklesin istiyorum Nasıl Yapabilirim
Timerı aktif ettim sayfa yenilenmeden her saniye tarih saati basıyor.Bununla Birlikte js ile yazılmış alert göstermek istiyorum.Teşekkürler
Kod ekleyemediğim için resim eklemek zorunda kaldım.
__________________________________________________ __________________________________________________ ___________________
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Protected Sub UpdateTimer_Tick(sender As Object, e As EventArgs) Handles UpdateTimer.Tick
Label2.Text = Now
End Sub
Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
UpdateTimer.Enabled = True
End Sub
Protected Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
UpdateTimer.Enabled = False
End Sub