Hi all,
I have an ASPX page with RadGrid control.
I need to refresh the RadGrid every 5 seconds.
I tried with this:
but I received an "InvalidOperationException: Script controls may not be registered after PreRender".
I have an ASPX page with RadGrid control.
I need to refresh the RadGrid every 5 seconds.
I tried with this:
Protected Sub form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles form1.Load
If Not IsPostBack Then
Dim aTimer As Timer = New Timer(2000)
AddHandler aTimer.Elapsed, AddressOf timer_Elapsed
aTimer.AutoReset = True
aTimer.Enabled = True
End If
End Sub
Private Sub timer_Elapsed(ByVal sender As Object, ByVal e As System.Timers.ElapsedEventArgs)
RadGrid1.Rebind()
End Sub
but I received an "InvalidOperationException: Script controls may not be registered after PreRender".
Any suggestions?
Thanks to all