Author: istakoza | Posted on: 1/7/2010 10:39:53 PM | Views : 468

I am able to upload an image to a Database from a fileupload control on a detailsview inserting event and then display it again. Here is my code to upload an image from a fileupload control:
Dim UploadedFile2 As FileUpload = CType(DetailsView1.FindControl("Fileupload2"), FileUpload)

Dim extension2 As String = Path.GetExtension(UploadedFile2.PostedFile.FileName).ToLower()         Dim MIMEType2 As String = NothingDim extension2 As String = Path.GetExtension(UploadedFile2.PostedFile.FileName).ToLower()
Dim MIMEType2 As String = Nothing
Select Case extension2
            Case ".gif"
 &nbs ...

Go to the complete details ...