customize progress

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

customize progress

Andre
can i programatically change percent complete? for example i upload file than upload some other data and i wont to show whole progress: file_size + data_size. i try to create my class Progress : ProgressPage and update totalbytes
public new long BytesTotal
{
   get {  base.BytesTotal = newvalue; return base.BytesTotal }}

in UI i see new value but progress not changed. is it possible to manage progrees?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: customize progress

Dean Brettle
Administrator
Does adjusting FractionComplete instead of (or in addition to BytesTotal) achieve what you want?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: customize progress

Andre
yes, you are right, but i understend that i can`t use progress for other processing. i have some questions.
1) can i start uploading from javascript for example __dopostback(...)
2) in progress.aspx -  barDetailsDiv show progress bar. am i right?
3) in progress.aspx - chunkedInProgress, processing - whot show this panels?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: customize progress

Dean Brettle
Administrator
Andre wrote
yes, you are right, but i understend that i can`t use progress for other processing. i have some questions.
1) can i start uploading from javascript for example __dopostback(...)
Yes.

Andre wrote
2) in progress.aspx -  barDetailsDiv show progress bar. am i right?
Yes.

Andre wrote
3) in progress.aspx - chunkedInProgress, processing - whot show this panels?
That is only displayed if the browser/client is uploading using the "chunked transfer encoding".  I'm not aware of any browsers that do that but if they did, then the size of the upload would not be available to the server until the upload had finished, so a normal progress bar can't be displayed.

Loading...