Can anyone plz tell me,I have OCX created Http upload control.In that I am sending chunk wise data.Everything is working fine.My question is-how can I show Upload progress or Uploading cancelled,using raiseEvent method.
I am sending my code whatever I tried-
(When I run the code file uploaded successfully,but I can not see the progess,how much bytes are uploaded) -
Public Enum TransferProcesses
-
TransferProcess_Upload = 0
-
End Enum
-
-
'Events of control
-
Public Event UploadProgress(ByVal bytesTransfered As Long, ByVal totalBytes As Long, transferProcess As TransferProcesses)
-
Public Event UploadComplete()
-
Public Event UploadCancelled()
-
Public Event UploadError(ByVal errNumber As Integer, ByVal errString As String, ByVal httpErrNumber As Long, ByVal httpErrString As String)
-
-
BytesUploaded = BytesUploaded + BUFFER_SIZE
-
RaiseEvent UploadProgress(BytesUploaded, lData, TransferProcess_Upload)
-
1 1224
Can anyone plz tell me,I have OCX created Http upload control.In that I am sending chunk wise data.Everything is working fine.My question is-how can I show Upload progress or Uploading cancelled,using raiseEvent method.
I am sending my code whatever I tried-
(When I run the code file uploaded successfully,but I can not see the progess,how much bytes are uploaded) -
Public Enum TransferProcesses
-
TransferProcess_Upload = 0
-
End Enum
-
-
'Events of control
-
Public Event UploadProgress(ByVal bytesTransfered As Long, ByVal totalBytes As Long, transferProcess As TransferProcesses)
-
Public Event UploadComplete()
-
Public Event UploadCancelled()
-
Public Event UploadError(ByVal errNumber As Integer, ByVal errString As String, ByVal httpErrNumber As Long, ByVal httpErrString As String)
-
-
BytesUploaded = BytesUploaded + BUFFER_SIZE
-
RaiseEvent UploadProgress(BytesUploaded, lData, TransferProcess_Upload)
-
Hey there Swan!
Is this the whole code? Please add everything just oin case someone is passing through does not have the time to rework your idea;-)
Please stay tuned!
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Brian Birtle |
last post by:
**** A CHALLENGE TO THE GURUS - refute the statement "It's impossible
to build a file upload progress meter using ASP.NET" **** First person
to prove me wrong gets "All Time .NET Programming GOD"...
|
by: Jeff S |
last post by:
I'm enabling users to upload files to the server. I'd like to show them some
indication of percent complete. How can this be done?
Thanks!
|
by: Pavils Jurjans |
last post by:
Hello,
I have the following setup:
The page that contains the form with file upolad HTML control resides on
another server that doesn't have ASP.NET available. It may well be just
static...
|
by: Marko Vuksanovic |
last post by:
I am trying to implement a file upload progress indicator (doesn't have to be a progress bar) using atlas... I do realize that the indicator cannot be implemented using Update panel control, but is...
|
by: Marko Vuksanovic |
last post by:
I am trying to implement a file upload progress indicator (doesn't have to be a progress bar) using atlas... I do realize that the indicator cannot be implemented using Update panel control, but is...
|
by: Marko Vuksanovic |
last post by:
I used the following code for implementing a file upload progress indicator, using UpdateProgress Panel, though I have a problem that FileUpload.Has File always returns false. Any suggestions what...
|
by: markus.rietzler |
last post by:
i want to do (multiple) file upload(s) and display a progress bar.
with firefox and safari it is no problem at all. only IE makes some
problems.
my script is based on ajax-uploader, which can be...
|
by: shapper |
last post by:
Hello,
I need to upload a file. Can I only do this with the File Upload
control?
I also need the following:
- Send upload info, upload percentage, continuously to a JavaScript
function so...
|
by: neovantage |
last post by:
Hey all,
i have installed Uber uploader on my server. and it is working perfectly. It shows progress bar after submitting form. I want that when i upload an image or a file it shows the progress in...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Shćllîpôpď 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |