|
Rank: Newbie Groups: Member
Joined: 6/18/2009 Posts: 4
|
Hi
I followed the download instructions for the progress bar. using this control with visual studio 2008. its working fine. but only problem is if suppose if i uploaded a more than 100 MB file. its taking time to start ProgressBar1_RunTask event handler. once this is started, progress information is displayed continuously. i think this is because of buffering data before starting ProgressBar1_RunTask event handler. In mean time i want to display some message whenever i click upload button. please help me as soon as possible.
Thanks Sreeni.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Do you mean ProgressBar control or AJAX Uploader control?
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 6/18/2009 Posts: 4
|
Hi
I am talking about Essential Objects ProgressBar control.
Thanks Sreeni
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
That is normal. The ProgressBar will post back the form to the server in order to run server side code (just like any other server side event), when you have a huge file, it takes time to post that file. You may want to separate the file upload into a separate page. And if you want progress information for file uploading, you will need to use the AJAXUploader control.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 6/18/2009 Posts: 4
|
hi
Is it possible to display any message or loading image while progress bar post back to server? if it is possible tell me the event name.
Thanks Sreeni
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, It is possible for you to do it with JavaScript. But it won't have anything to do with the ProgressBar. If you were using the ProgressBar's StartTaskButton to trigger the ProgressBar, you will need to clear that property and trigger the ProgressBar with JavaScript instead. You can then do whatever before you trigger the ProgressBar. It will be something like this:
Code: JavaScript
var pb = eo_GetObject("ProgressBar1");
//do whatever you need to do such as display your message here
.....
//Now start the progress bar
pb.startTask();
Hope this helps. Thanks
|
|