Posted on: 12/24/2013 5:15:59 PM | Views : 608

Hi. I have a code like that:
FileUpload img = (FileUpload)fuLogo; byte[] logo; if (img.HasFile && img.PostedFile != null) { HttpPostedFile File = fuLogo.PostedFile; logo = new Byte[File.ContentLength]; File.InputStream.Read(logo, 0, File.ContentLength); }
I send "logo" as an sp parameter. When i have no file to upload, i get a "parameter 'XXX', which was not supplied" error. So i say logo = null in the code but then it updates logo as null. I don't want to update logo value when i don't select a new logo. What should i do?

Go to the complete details ...