Skip to content

Multiple File download

shanmuganathan raju

Asked Sep 19, 2007, 9:32 PM EDT1 answer
Share
LinkedInX

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

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    to download pdf or any other file.I m given u vb.net code convert it into c#

    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
    0