Kaskus

Tech

novelismAvatar border
TS
novelism
[ask] Upload file dengan vb.net
gan ane lagi bikin applikasi upload file dengan VB.Net, Error sih engga, tpi ga ke upload gan.
ini script ane gan :
Code:

Private Sub upload_file(ByVal sFile As String)
'upload file cv

Dim uriString As String = "http://www.xxxxxx.co.id/public/cv/"

' Create a new WebClient instance.
Try
'Upload the file to the Url using the HTTP 1.0 POST.
Dim myWebClient As WebClient = New WebClient

AddHandler myWebClient.UploadProgressChanged, AddressOf pCa
AddHandler myWebClient.UploadFileCompleted, AddressOf pC2a

'System.Net.ServicePointManager.Expect100Continue = False

Dim addr As System.Uri = New Uri(uriString & txtnama.Text + txtidkandidat.Text & ".doc")

myWebClient.UploadFileAsync(addr, sFile)

Catch ex As Exception
MsgBox(ex.Message)
End Try

End Sub


mohon pencerahannya gan..
Diubah oleh novelism 14-06-2013 06:46
0
855
0
GuestAvatar border
Komentar yang asik ya
GuestAvatar border
Komentar yang asik ya
Komunitas Pilihan