User1269925535 posted
hi...try this:
this code save file with DateTime Name...
int index = File1.FileName.LastIndexOf('.');
string ext = "";
if (index > 0)
ext = File1.FileName.Substring(index);
string fileName = DateTime.Now.ToString().Substring(0, 19).Replace("/", ".").Replace(":",".") + "_" + category + ext;
string path = Server.MapPath("~/PDFFiles/" + fileName);
File1.SaveAs(path);
return fileName;