• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 479
  • Last Modified:

Implement a progreesbar while retrieving records

Can sombedoy help me to implement this. I have a query to a db2 It can take for example 10 -20 seconds to execute.  I want to show a progress bar

 Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Introducir aquí el código de usuario para inicializar la página
        menu2.tipo = 3
        'If Not Page.IsPostBack Then
        'End If
    End Sub

    Private Sub cargartotalcarteraeinfobasica()
        Dim total As Decimal = objconsultas.cargartotalcartera(Session("nitproveedor"))
         Dim s As String 'create a string
        s = String.Format("{0:c}", total)
        lbltotal.Text = s
        lblnombre.Text = Session("nombrecliente")
    End Sub
  • 3
1 Solution
djhexAuthor Commented:
Help me implement the farsidestudios from the Code I gave you. Their documentation Sucks. and 500 points for just links?

I can google that.
Had you download their sample code?

Basically once you had their DLL you have to referance it to your project.

Make a instance of that progressbar object

ProgressBar1 As Farside.WebControls.ProgressBar - in VB.net

Farside.WebControls.ProgressBar ProgressBar1  - C#

next you can assign those standard properties which ever you want.
Adjust your calculations according to your and assign the value
You basically have to use animate1 - you can see this when you had installed their demo.
They got millisecounds and value property which you can assign.

Hope you got it.


Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now