Click here to Skip to main content
15,917,481 members

Comments by varsha p (Top 2 by date)

varsha p 8-Feb-11 0:14am View    
but in your code some error occurs
string fileName = Path.GetFileName(this.FileUpload1.PostedFile.FileName);
if (!File.Exists("Images/"+ fileName))
{
//Save Uploaded file at Images folder
FileUpload1.SaveAs(Path.Combine(PDFAttachmentFolderPath, fileName));

//Here is code for save file name in Database
//You can use fileName variable to get uploaded recently image name.
}


in above code error in the path.getfile statement error is any imports is needed for that
varsha p 29-Jan-11 1:07am View    
thanks