if (fluplogo.HasFile)//Here Value of File upload Is Null { string FilePath = ""; string[] a = new string[1]; string fileName = ""; string FullName = ""; try { if (fluplogo.FileName.Length > 0) { a = fluplogo.FileName.Split('.'); fileName = Convert.ToString(System.DateTime.Now.Ticks) + "." + a.GetValue(1).ToString(); FilePath = Server.MapPath(@"~\InstituteLogo"); fluplogo.SaveAs(FilePath + @"\" + fileName); FullName = FilePath + @"\" + fileName; // Database Save Operation of filename. } } catch { } }
if (fluplogo.PostedFile != null && fluplogo.PostedFile.ContentLength > 0)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)