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 JayaramanRank #563 · 4.3K reputationPosted Jan 3, 2013, 9:30 PM EST
Please check whether photupload has file before doing this
if (PhotoUpload.HasFile)
{
static string impath = string.Empty;
prathyusha173 reputationPosted Jan 3, 2013, 9:47 PM EST
Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Jan 3, 2013, 10:49 PM EST