Posted on: 10/17/2015 7:15:33 AM | Views : 1155

I am saving file name which is created dynamically inside my FutureDelivery folder.
but i am getting error as 
Could not find a part of the path 'D:\WMSDEV\FutureDelivery\20\FD\102015'.
Here is my code:-
CF.ExecuteQuerry("update WMS_Future_Del_Order_Hdr set Doc_no ='" + StrDocNo + "' where mkey=" + strretmkey + ""); lblDocNo.Text = StrDocNo.ToString(); Hid_MKey.Value = strretmkey; string ExcelfileName = Path.GetFileName(FileUpload1.PostedFile.FileName); ExcelfileName = StrDocNo.ToString(); FileUpload1.PostedFile.SaveAs(Server.MapPath("~/FutureDelivery/") + ExcelfileName); Please suggest what is wrong

Go to the complete details ...