Author: chclt | Posted on: 10/3/2010 6:25:09 PM | Views : 319

hi this is my code ...iam storing & retrieving image from db using gridview but now i got stuc..how to dispaly default imag ewhen user is not uploading the iamge...
here is my code...plaese help me ...
this is insert image to db......
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim arrcontent As Byte() Dim LEN As Integer Dim FN As String = String.Empty Dim EXT As String = String.Empty If Fu1.HasFile Then FN = Fu1.PostedFile.FileName Dim ityp = Fu1.PostedFile.ContentType Len = Convert.ToInt32(Fu1.PostedFile.InputStream.Length) EXT = FN.Substring(FN.LastIndexOf(".")) EXT = EXT.ToLower() If EXT = ".jpg" Or EXT = ".bmp" Or EXT = ".gif" Or EXT = ".png" Or EXT = ".jpeg" Then ...

Go to the complete details ...