S
sonu
I want to upload files without file control.
suppose i have string "c:\test.txt"
i am using this
FileInfo Myfile= new System.IO.FileInfo("c:\test.txt");
string strBaseLocation = "c:\\amit\\";
objFile=(HttpPostedFile)Myfile; there is an error in this line cant
cast like this
objFile.SaveAs(strBaseLocation+Myfile.FullName);
please help me
suppose i have string "c:\test.txt"
i am using this
FileInfo Myfile= new System.IO.FileInfo("c:\test.txt");
string strBaseLocation = "c:\\amit\\";
objFile=(HttpPostedFile)Myfile; there is an error in this line cant
cast like this
objFile.SaveAs(strBaseLocation+Myfile.FullName);
please help me