Hi, i am new to asp scripting and i am looking for a true as can be progress bar as part of my upload script. i have two scripts, the first takes the files; <FORM ACTION=upload.asp METHOD=POST enctype="multipart/form-data" id="Form1" name=Form1> <table style="height: 1px;" align="center" border="1" bordercolor="silver" cellpadding="2" cellspacing="2"> <tbody> <tr> <td style="width: 448px;" unselectable="off" align="center" bgcolor="#f7f7f7"> Select Files</td> </tr> <tr> <td style="width: 448px; height: 145px;" unselectable="off" align="center"> <br /> <input class="stdInput" name="file" type="file" /><br /> <input class="stdInput" name="file1" type="file" /><br /> <input class="stdInput" name="file2" type="file" /><br /> <input class="stdInput" name="file3" type="file" /><br /> <input class="stdInput" name="file4" type="file" /> <br /> <br /> </td> </tr> <tr> <td style="width: 448px;" unselectable="off" align="right"><input value="Submit" type="submit" /></td> </tr> </tbody> </table> </form> and the second, seperate script performs the upload function(upload.asp). i would like to place the progress bar at the bottom of the form, below the submit button, so as when the submit button is pressed the upload begins and the progress bar starts running on this first script.can anyone help with the coding of the progress bar and in its position in the above form Thanks in advance
I dont think there is any staight forward simple solution for it. You will have to use AJAX or something similar to that so that you can poll the status of the uploads without refresshing your page and update the progress bar accordingly.
I have never developed a progress bar for ASP it can be a brain surgery. If I had to do something for this then I might start off with iFrame/Form so that you have control on the main page. Next As you are uploading file(s) I would recommed following steps 1. Get the speed at which the client machine and server are connected 2. Get total size of all files 3. Get estimated time it will take to upload 4. Mark it up by 10% to network speed fluctuations NOW set the timer on the progress bar so you know exactly how much to increment on every second. This will have to be controlled at clients end now with dynamically written JavaScript. Hope this helps. I do not see any short n sweet solution to the requirement
I found something with html, it only handles one file, but i am sure how i could implement it, any suggestions/solutions, it at the following link http://www.websupergoo.com/helpupload/source/3-examples/progressupload.htm
the file upload control does not work with asp.net ajax, i think there is a hack using frame. try this http://geekswithblogs.net/rashid/archive/2007/08/01/Create-An-Ajax-Style-File-Upload.aspx