I have tried numerous examples to display a progress bar on a web page but cant find a suitable solution. What I have is some database processing that is in a loop in a code behind file. This process can take some time to complete so idealy I want to display a progress bar as it loops though these records. The old way could be written in the asp code and have some javascript function to update the bar. Codebehind seems to have made this job very tricky - if not impossible, can it be done?