I can't get the progress bar to work.
the vb code on this page (also shown below):
http://doc.essentialobjects.com/library/1/progressbar/action_server.aspxreturns an error for me :
"Handles clause requires a WithEvents variable defined in the containing type or one of its base types"
sample code:
Code: Visual Basic.NET
Private Sub ProgressBar_ItemClick(ByVal sender As System.Object,
ByVal e As EO.Web.ProgressTaskEventArgs) Handles ProgressBar1.ItemClick
Dim i As Integer
For i = 0 To 99
'Stop the task as soon as we can if the user has
'stopped it from the client side
If e.IsStopped Then
Exit For
End If
'Here we call Thread.Sleep just for demonstration
'purpose. You should replace this with code that
'performs your long running task.
System.Threading.Thread.Sleep(500)
'You should frequently call UpdateProgress in order
'to notify the client about the current progress
e.UpdateProgress(i)
Next i
End Sub
thanks,
in advance.