Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Need to show a progressbar update

Need to show a progressbar update

Scheduled Pinned Locked Moved Web Development
questiondatabasehelptutorialannouncement
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mgr_2k7
    wrote on last edited by
    #1

    Hi Friends, My requirement is something like this. I have a button in my page which invokes a Stored Procedure in the back end. The Stored Procedure is a huge one and takes a whole 3-4 mins to run. What I want is to show that progress in a progressbar in the front end. I can calculate the percentage that has to be shown there, the question is how to make it work? I tried using a TimerControl tool and wrote codes in its Tick event, but as soon as the Stored Procedure starts running, the control is lost and the tick event is not invoked. Can anyone plz help me? In a sorry state right now, trying to find the solution. Thanx 2 all in advance.

    C M 2 Replies Last reply
    0
    • M mgr_2k7

      Hi Friends, My requirement is something like this. I have a button in my page which invokes a Stored Procedure in the back end. The Stored Procedure is a huge one and takes a whole 3-4 mins to run. What I want is to show that progress in a progressbar in the front end. I can calculate the percentage that has to be shown there, the question is how to make it work? I tried using a TimerControl tool and wrote codes in its Tick event, but as soon as the Stored Procedure starts running, the control is lost and the tick event is not invoked. Can anyone plz help me? In a sorry state right now, trying to find the solution. Thanx 2 all in advance.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Your only option really is to use AJAX to make the stored procedure call. Then your page can do whatever it likes, otherwise, the page disappears while the server request is being made.

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      1 Reply Last reply
      0
      • M mgr_2k7

        Hi Friends, My requirement is something like this. I have a button in my page which invokes a Stored Procedure in the back end. The Stored Procedure is a huge one and takes a whole 3-4 mins to run. What I want is to show that progress in a progressbar in the front end. I can calculate the percentage that has to be shown there, the question is how to make it work? I tried using a TimerControl tool and wrote codes in its Tick event, but as soon as the Stored Procedure starts running, the control is lost and the tick event is not invoked. Can anyone plz help me? In a sorry state right now, trying to find the solution. Thanx 2 all in advance.

        M Offline
        M Offline
        mgr_2k7
        wrote on last edited by
        #3

        Hi Christian, I'm a bit novice with AJAX. Can you plz guide me through it? I have no idea how to make these things work with AJAX. Gimme a snippet I can work from? Thanks a lot.

        S 1 Reply Last reply
        0
        • M mgr_2k7

          Hi Christian, I'm a bit novice with AJAX. Can you plz guide me through it? I have no idea how to make these things work with AJAX. Gimme a snippet I can work from? Thanks a lot.

          S Offline
          S Offline
          Shog9 0
          wrote on last edited by
          #4

          Try this: http://www.amazon.com/ASP-NET-AJAX-Action-Alessandro-Gallo/dp/1933988142/[^]

          But who is the king of all of these folks?

          M 1 Reply Last reply
          0
          • S Shog9 0

            Try this: http://www.amazon.com/ASP-NET-AJAX-Action-Alessandro-Gallo/dp/1933988142/[^]

            But who is the king of all of these folks?

            M Offline
            M Offline
            mgr_2k7
            wrote on last edited by
            #5

            Tried a lot but dunno how to make the tick of the timer call once the stored procedure has started to execute? Can anybody help me? I am awfully stuck. Seems a bit foolish to ask but u can consider me a layman when it comes to AJAX.

            S 1 Reply Last reply
            0
            • M mgr_2k7

              Tried a lot but dunno how to make the tick of the timer call once the stored procedure has started to execute? Can anybody help me? I am awfully stuck. Seems a bit foolish to ask but u can consider me a layman when it comes to AJAX.

              S Offline
              S Offline
              Shog9 0
              wrote on last edited by
              #6

              That's why i gave you such a great book suggestion. You should read it.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups