I initially had it working fine but when I tried to change the configuration I had problems.
Initially I had it defined statically:
Code: HTML/ASPX
<eo:ProgressBar id="GoogleProgress" style="Z-INDEX: 100; LEFT: 288px; POSITION: absolute; TOP: 168px"
runat="server" Width="251px" BorderColor="Red" ForeColor="Black" Height="24px" StartTaskButton="StartSitemap"
StopTaskButton="CancelSitemap" RepeatIndicatorImage="True" BackColor="White" IndicatorColor="Black"
BorderStyle="Solid" Maximum="1000"></eo:ProgressBar>
But I needed to dynamically adjust the Maximum value which I attempted to do in the PageLoad() but it did not work.
If that is supposed to work I will go back to that code and work on it.
When it didn't work I decided to dynamically create the control at run-time in the PageLoad()
Code: C#
GoogleProgress = new EO.Web.ProgressBar() ;
GoogleProgress.Maximum = ptotal;
GoogleProgress.Width = 500;
GoogleProgress.Height = 25;
GoogleProgress.BorderColor = System.Drawing.Color.Red;
GoogleProgress.ForeColor = System.Drawing.Color.Black;
GoogleProgress.BackColor = System.Drawing.Color.White;
GoogleProgress.IndicatorColor = System.Drawing.Color.Black;
GoogleProgress.BorderStyle = System.Web.UI.WebControls.BorderStyle.Solid;
GoogleProgress.StartTaskButton="StartSitemap";
GoogleProgress.StopTaskButton="CancelSitemap";
GoogleProgress.RunTask += new EO.Web.ProgressTaskEventHandler(this.GoogleProgress_ItemClick);
PlaceHolderGPB.Controls.Add(GoogleProgress);
When I do this the control displays fine and the buttons work properly but GoogleProgress_ItemClick is never raised.
Andy