if (fileName == "NoImage") { fulpath = "~/img/Employee/NoImage.jpg"; }
HttpPostedFileBase file = Request.Files.Get(0);
string fileName = Path.GetFileName(file.FileName); var ext = Path.GetExtension(file.FileName);
if (fileName != null || fileName != String.Empty) { if (fileName == "NoImage") { fulpath = "~/img/Employee/NoImage.jpg"; } else { fulpath = "~/img/Employee/" + MaxCount + "-" + year + ext; file.SaveAs(Request.MapPath(fulpath)); } }
if (fileName != null) fulpath = "~/img/Employee/" + MaxCount + "-" + year + ext; else fulpath = "~/img/Employee/NoImage.jpg"; file.SaveAs(Request.MapPath(fulpath));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)