Posted on: 8/3/2014 7:57:25 PM | Views : 401

I have a long process and I want to show a user a progress bar where I pass a parameter (percentage) to a javascript function in my Webform with masterpage.
I have this:
<script type="text/javascript"> function updateProgress(percentage) { document.getElementById('ProgressBar').style.width = percentage+"%"; } </script> and below that:
<div class="progress progress-striped active progress-success" style="height: 43px"> <div id="ProgressBar" class="progress-bar" role="progressbar" runat="server" aria-valuemin="0" aria-valuemax="100" style="width: 0%"> </div> </div> In my code-behind, I have this to pass a parameter to the function:

Go to the complete details ...