3
Answers

fileupload control

Photo of prathyusha

prathyusha

12y
1.3k
1
hi
by using this code
static string impath = string.Empty;
 PhotoUpload.SaveAs(Server.MapPath("~/Logos/" + PhotoUpload.FileName));
            impath = "~/Logos/" + PhotoUpload.FileName;
            ImagePreview.ImageUrl = impath;
            
            btnPhotoPreview.Visible = false;
the filename should be empty why?
 please help  me

Answers (3)