Protected Sub btnCopy_Click(sender As Object, e As EventArgs)
Try
Dim filename As String = "abcd.mp3"
Dim sourcePath As String = "\\is-pc634\Shared\"
Dim response As System.Web.HttpResponse = System.Web.HttpContext.Current.Response
response.ClearContent()
response.Clear()
response.ContentType = "audio/x-wav"
response.AddHeader("Content-Disposition", "attachment; filename=" & fileName & ";")
response.TransmitFile(sourcePath)
response.Flush()
response.End()
Else
msgBox("File cannot be downloaded.")
End If
Catch ex As Exception
msgBox(ex.Message)
End Try
End Sub
hope it helps u..