Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
Timer1.Enabled = True
End If
End Sub
Protected Sub Btn1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Btn1_Click
Response.Write("Hello")
End Sub
Protected Sub Timer1_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles Timer1.Tick
Response.Write("ทดสอบ")
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
Timer1.Enabled = True
End If
End Sub
Protected Sub Btn1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Btn1_Click
Response.Write("Hello")
Timer1.Enabled = True
End Sub
Protected Sub Timer1_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles Timer1.Tick
Response.Write("ทดสอบ")
End Sub
Protected Sub Btn1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Btn1_Click
Response.Write("Hello")
if Timer1.Enabled <> True then Timer1.Enabled = True
End Sub