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,bu t I can not see the progess,how much bytes are uploaded)
[code=vb]
Public Enum TransferProcess es
TransferProcess _Upload = 0
End Enum
'Events of control
Public Event UploadProgress( ByVal bytesTransfered As Long, ByVal totalBytes As Long, transferProcess As TransferProcess es)
Public Event UploadComplete( )
Public Event UploadCancelled ()
Public Event UploadError(ByV al 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)
[/code]
I am sending my code whatever I tried-
(When I run the code file uploaded successfully,bu t I can not see the progess,how much bytes are uploaded)
[code=vb]
Public Enum TransferProcess es
TransferProcess _Upload = 0
End Enum
'Events of control
Public Event UploadProgress( ByVal bytesTransfered As Long, ByVal totalBytes As Long, transferProcess As TransferProcess es)
Public Event UploadComplete( )
Public Event UploadCancelled ()
Public Event UploadError(ByV al 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)
[/code]
Comment