Click here to Skip to main content
15,922,533 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends , I was searched in google . but i does not get the answer. please any one help.
Posted

C#
string currentDirectoryPath = Request.PhysicalApplicationPath;
string dynamicFolderPath =currentDirectoryPath +"\Images";
System.IO.Directory.CreateDirectory(dynamicFolderPath);
FileUploadControl.SaveAs(dynamicFolderPath+"FirstImage.Jpeg");
 
Share this answer
 
v2
C#
strFolderPath="set your path ";
                                  if (!Directory.Exists(strFolderPath))
                                  {
                                      Directory.CreateDirectory(strFolderPath);
                                  }


u should try like that .
 
Share this answer
 

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