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.
kavita113 pointsPosted Sep 20, 2007, 2:36 AM EDT
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