Click here to Skip to main content
15,917,702 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Anyone can help me for How to create a directory in web server or host using asp.net ans c#.
Posted

1 solution

Try This...

C#
if(Directory.Exists(path))
                return true;

try
{
    Directory.CreateDirectory(path);
}
 
Share this answer
 
Comments
Eng. Ashish Srivastava 15-Nov-13 4:23am    
Thanks dbg1912

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900