or not where files will be uploaded.if the folder
not exists then it creates the directory.then
the file is saved using FileUpload contol
to the correct directory in server -
string subPath = "ImagesPath"; // your code goes here
bool IsExists = System.IO.Directory.Exists(Server
.MapPath(subPath));
if (!IsExists) System.IO.Directory.CreateDirectory
(Server.MapPath(subPath));
FileUpload FileUpload1 = FileUploadd;
string virtualFolder = "~/"+subPath+"/";
string physicalFolder = Server.MapPath(virtualFolder);
FileUpload1.SaveAs(physicalFolder + FileUpload1.FileName);