i am uploading csv file to sql server and at the same time binding to gridview at the same time , but i am receiving an server that ,
Could not find a part of the path 'D:\Send Free SmS\6-2-15\Files\SBM List.csv'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\Send Free SmS\6-2-15\Files\SBM List.csv'.
Source Error:
Line 46: //Upload and save the file
Line 47: string csvPath = Server.MapPath("~/Files/") + Path.GetFileName(FileUpload1.PostedFile.FileName);
Line 48: FileUpload1.SaveAs(csvPath);
Line 49:
Line 50: DataTable dt = new DataTable();
Source File: d:\Send Free SmS\6-2-15\Add-Contact.aspx.cs Line: 48
protec ...
Go to the complete details ...