Welcome Guest Search | Active Topics | Sign In | Register

Progress Bar question Options
Everton
Posted: Sunday, November 9, 2014 9:03:59 AM
Rank: Newbie
Groups: Member

Joined: 11/9/2014
Posts: 1
Hello

I am a beginner to this. I have VS Express 2013 for Web, and have this in my aspx.vb file:

Code: Visual Basic.NET
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="progressBar.aspx.vb" Inherits="progressBar" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">

    <script>

        function OnProgress(progressBar) {
            var extraData = progressBar.getExtraData();
            if (extraData) {
                var div = document.getElementById("divStatus");
                div.innerHTML = extraData;
            }
        }

        </script>

Protected Sub ProgressBar1_RunTask(sender As Object, e As EO.Web.ProgressTaskEventArgs)
 
     e.UpdateProgress(0, "Running...")
 
    Dim i As Integer
   For i = 0 To 99
         If e.IsStopped Then
         Exit For
      End If
          System.Threading.Thread.Sleep(500)

       If i > 50 Then
         e.UpdateProgress(i, "Half done...")
      Else
         e.UpdateProgress(i)
      End If
   Next i
   e.UpdateProgress(100, "The task is done!")
End Sub 

'ProgressBar1_RunTask

    </asp:Content>


Can I ask which class goes above the 'Protected Sub ProgressBar1', please, and what do I place in my aspx file.

Thank you for your patience.



You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.