problem in uploading file from client side to server side [Resolved]

Posted by Amzu14 under Error and Solution on 8/1/2010 | Views : 2943 | Status : [Member] | Replies : 2

I want to upload a file from client side to server side using Visual Studio2008 asp.net c# for that i'm checking if the directory already exists or not and doing it by the following code
string UpPath;
UpPath = "D:\\UploadedUserFiles";
if (!Directory.Exists(UpPath))
Here I'm getting error that
The name 'Directory' does not exist in the current context
what should i do.




Responses

Posted by: Muhilan on: 8/1/2010 [Member] Starter

Up
0
Down

Resolved
Use System.IO namespace
else

System.IO.Directory.Exists(upPath)


Amzu14, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Poster on: 8/1/2010 [Member] Starter

Login to post response