asp.net ajax upload file real time progress bar not working -
i trying ajax file upload , real time progress bar, have tested in localhost , worked perfectly, when tried testing on online web server bar didn't work till end of uploading file, when put system.threading.sleep(value) in end of uploading loop, bar worked uploading slow, how can resolve this? the steps used: construct iframe(point upload.aspx) , file upload inside it. on pageload javascript function iframe page called window.parent.register(form) function predicate iframe form javascript variable in parent page. in parent page (default.aspx) placed button, , onclick iframe form predicated submited. javascript interval calls ajax callback function every (1000ms). this function (the ajax callback) watching session["uploadinfo"]. when iframe form submits iframe page, calls doupload() method reads file in while loop (fileupload.postedfile.inputstream.read(bytes,0,1);) writes byte in specific path, , adds (1) session["uploadinfo"] (which increases pro...