﻿

                        function onUpdating(strValupdateProgress, strControlDiv) {
                        // get the update progress div
                        var updateProgressDiv = Sys.UI.DomElement.getElementById(strValupdateProgress);


                        //  get the gridview element
                        var gridView = Sys.UI.DomElement.getElementById(strControlDiv);



                        // get the bounds of both the gridview and the progress div
                        var gridViewBounds = Sys.UI.DomElement.getBounds(gridView);
                        var updateProgressDivBounds = Sys.UI.DomElement.getBounds(updateProgressDiv);

                        //    do the math to figure out where to position the element (the center of the gridview)
                        var x = gridViewBounds.x + Math.round(gridViewBounds.width / 2) - Math.round(updateProgressDivBounds.width / 2);
                        var y = gridViewBounds.y + Math.round(gridViewBounds.height / 2) - Math.round(updateProgressDivBounds.height / 2);

                        //    set the progress element to this position
                        Sys.UI.DomElement.setLocation(updateProgressDiv, x, y);
                        //updateProgressDiv.style.top = 200;
                        //updateProgressDiv.style.left = 200;

                        // make it visible
                        updateProgressDiv.style.display = '';
                        }

                    function onUpdated(strValupdateProgress) {
                        // get the update progress div
                        //var updateProgressDiv = $get('updateProgressDiv');
                        var updateProgressDiv = Sys.UI.DomElement.getElementById(strValupdateProgress);
                        // make it invisible
                        updateProgressDiv.style.display = 'none';

                    }

    
