Question : Downloading binary files

Hi,

I have set-up a form that inserts records into a table.  One of the fields is varbinary and data is inserted into it via this code:

        Dim UploadMSG As FileUpload = _
            CType(DetailsView1.FindControl("FileUpload1"), FileUpload)
        e.Values("Data") = UploadMSG.FileBytes

I've now added a gridview control to display the data back.  How can I add a field to this that allows the file (which will be msg format) to be opened or downloaded?

Answer : Downloading binary files

Hi there

Try the following:
Dim item As ListViewItem
        For Each item In lvMatchedDvid.SelectedItems
            item.Remove()
        Next
Random Solutions  
 
programming4us programming4us