I need to know how to do multiple file download using asp.net with c# and
another question
how to do load the pdf file and get the resolution for pdf file using asp.net with c#
regard
shanmuganathan
Paragon Dynamics info system
I need to know how to do multiple file download using asp.net with c# and
another question
how to do load the pdf file and get the resolution for pdf file using asp.net with c#
regard
shanmuganathan
Paragon Dynamics info system
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
kavitaPosted Sep 20, 2007, 6:36 AM
Private Sub download(ByVal uri As String)
On Error Resume Next
Dim web As New WebClient
Dim file As File
Dim fname As String
Dim s, e As Integer
fname = uri.Substring(InStrRev(uri, "/", , CompareMethod.Text))
If file.Exists(Application.StartupPath & "/IMAGE/" & fname) = True Then
sysBusy = False
Exit Sub
End If
lblMsg.Text = "Downloading " & fname
Application.DoEvents()
Application.DoEvents()
web.DownloadFile(uri, Application.StartupPath & "/IMAGE/" & fname)
' or web.DownloadFile(uri, Application.StartupPath & "/IMAGE/" & fname & ".pdf") according to source
web.Dispose()
End Sub