TaTMiNG@HK
2006-06-22 16:32:10 UTC
©ÎªÌÃD¥ØŠ³ÂI€£ŠXŸA,šä¹ê§ÚªºTimer€wžg¹B§@¥¿±`,Šý«ožõ¹L°µData Bindªº€@šB,µ{Š¡œXŠp€U:
Dim aTimer As New System.Timers.Timer
AddHandler aTimer.Elapsed, AddressOf TimerEvent
aTimer.Interval = 3000
aTimer.Enabled = True
aTimer.AutoReset = True
Protected Sub TimerEvent(ByVal sender As Object, ByVal e As
System.Timers.ElapsedEventArgs)
Debug.Print("start" & Now )
Repeater1.DataBind()
Debug.Print("end" & Now )
End Sub
Šb¿é¥Xµøµ¡€€,³£¥i¥H¬Ý¥XDebug.PrintªºStart ©MEnd ©MNowªº®É¶¡,¥i¥H±oªŸTimer¹B§@¥¿±`,Šý§ÚWeb form€€ªºRepeater«ošSŠ³°µDataBind . §YšÏ«ežmªºProtected Sub,§ïŠšPublic
or Sharedµ²ªG³£¬O€@ŒË.
Šý§Ú€wªÖ©wRepeater1.DataBind()¬OšSŠ³°ÝÃD,°²Šp§Ú§â¥Š©ñŠbButton_clickªºEvent€€¬OšSŠ³°ÝÃDªº. Šbºô€W§äšì€@šÇÁ¿zTimerªº€å³¹,
http://blog.joycode.com/percyboy/archive/2004/08/21/31240.aspx
«ošSŠ³ÀYºü,€j®a¥i¥HÀ°Š£¶Ü?
--
Dim aTimer As New System.Timers.Timer
AddHandler aTimer.Elapsed, AddressOf TimerEvent
aTimer.Interval = 3000
aTimer.Enabled = True
aTimer.AutoReset = True
Protected Sub TimerEvent(ByVal sender As Object, ByVal e As
System.Timers.ElapsedEventArgs)
Debug.Print("start" & Now )
Repeater1.DataBind()
Debug.Print("end" & Now )
End Sub
Šb¿é¥Xµøµ¡€€,³£¥i¥H¬Ý¥XDebug.PrintªºStart ©MEnd ©MNowªº®É¶¡,¥i¥H±oªŸTimer¹B§@¥¿±`,Šý§ÚWeb form€€ªºRepeater«ošSŠ³°µDataBind . §YšÏ«ežmªºProtected Sub,§ïŠšPublic
or Sharedµ²ªG³£¬O€@ŒË.
Šý§Ú€wªÖ©wRepeater1.DataBind()¬OšSŠ³°ÝÃD,°²Šp§Ú§â¥Š©ñŠbButton_clickªºEvent€€¬OšSŠ³°ÝÃDªº. Šbºô€W§äšì€@šÇÁ¿zTimerªº€å³¹,
http://blog.joycode.com/percyboy/archive/2004/08/21/31240.aspx
«ošSŠ³ÀYºü,€j®a¥i¥HÀ°Š£¶Ü?
--