Posted on: 5/24/2011 10:06:44 AM | Views : 819

Hi
I have a script that can upload an image to a DB.
How can i get this code to write to an label on my default.aspx that the upload is OK or that an error was trigged.

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Try openAccessConnection() Dim imageSize As Int64 Dim imageType As String Dim imageStream As Stream ' Gets the Size of the Image imageSize = fileImgUpload.PostedFile.ContentLength ' Gets the Image Type imageType = fileImgUpload.PostedFile.ContentType ' Reads the Image stream imageStream = fileImgUpload.PostedFile.InputStream Dim imageContent(imageSize) As Byte Dim intStatus As Integer intStatus = imageStream.Read(imageContent, 0, imageSize) Dim cmd As New OleDbCo ...

Go to the complete details ...