The filename property of pasted file does not give u only file name it gives u full path of the file on clients machine.
"fuFileUpload.PostedFile.FileName" is not file name it is complete path
u can extract the fil ename from it
Code:
string strFileName= fuFileUpload.PostedFile.FileName.Substring(1+fuFileUpload.PostedFile.FileName.LastIndexOf(@"\"));
Last edited by handshakeit; 05-11-2006 at 06:13 AM..
|