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
the filename should be empty why?
please help me
Santhosh Kumar JayaramanPosted Jan 4, 2013, 2:30 AM
Please check whether photupload has file before doing this
if (PhotoUpload.HasFile)
{
static string impath = string.Empty;
Santhosh Kumar JayaramanPosted Jan 4, 2013, 3:49 AM
prathyushaPosted Jan 4, 2013, 2:47 AM