Hi all,
i developed my own module that will do a lot of database activity
within a loop. This activities will take a longher time (up to 5
Minutes). My Idea is to display a progressbar within the process to show
the user the remaining time.
But I don't know how to do this. The statusbars that i found
either need a postbak to the server (which will kill my loop) or will
work with javascript. I think this statusbar
(http://donavon.com/ProgressBarDemo.aspx) will do my work, but how can
I refresh the progressbar out of a method in my code behind without leaving my loop?
Here is a part of my Code-Behind
For Each portal In portalCollection
'...do something
StatusCounter = StatusCounter + 1
If StatusCounter Mod 25 = 0 Then
' refesh the status bar every 25 steps
End If
Next
This is the clientside Code:
<d:progressbar id="ProgressBarClientPercent" runat="server"
borderwidth="2px" borderstyle="Outset" percent="30" height="13px"
width="208px" barcolor="Red"></d:progressbar>
<input
onclick="document.all.txtClientPercent.value=SetPercentProgressBar('ProgressBarCLientPercent',parseInt(document.all.txtClientPercent.value,10))"
value="Set" type="button"><input id="txtClientPercent" size="1"
value="30" type="text">
Many thanks
Marcus