string currentDirectoryPath = Request.PhysicalApplicationPath; string dynamicFolderPath =currentDirectoryPath +"\Images"; System.IO.Directory.CreateDirectory(dynamicFolderPath); FileUploadControl.SaveAs(dynamicFolderPath+"FirstImage.Jpeg");
strFolderPath="set your path "; if (!Directory.Exists(strFolderPath)) { Directory.CreateDirectory(strFolderPath); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)