Click here to Skip to main content
15,894,291 members
Articles / Programming Languages / C#

wehn i run i got this error

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
29 Dec 2012CPOL 2.8K  
string filename = Path.GetFileName(fileUpload1.PostedFile.FileName);when i run i got the following error.The name 'Path' does not exist in the current context wat to do please help me.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
29 Dec 2012Mehdi Gholam
Try the following :string filename = System.IO.Path.GetFileName(fileUpload1.PostedFile.FileName);
Please Sign up or sign in to vote.
29 Dec 2012Abhishek Pant
The Question is already answered at CodeProjectThe name 'Path' does not exist in the current context[^]hope it helped!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Comments and Discussions