DirectoryInfo imageFolder = new DirectoryInfo(Server.MapPath("~/Gallary/") + str + "/Images/"); string Imgpath = "~/Gallary/" + str + "/Images/"; bool isImg = System.IO.Directory.Exists(Server.MapPath(Imgpath)); if (isImg==true) { DirectoryInfo newimageFolder = new DirectoryInfo(Server.MapPath("~/Gallary/") + txtname.Text + "/Images/{0}"); string newImgpath = "~/Gallary/" + txtname.Text + "/Images/"; bool isnewImg = System.IO.Directory.Exists(Server.MapPath(newImgpath)); if (!isnewImg) { newimageFolder.Create(); Directory.Move(Imgpath, newImgpath); xmldoc.Save(Server.MapPath("~/" + "XML/album.xml")); } }
"~/Gallary/") + txtname.Text + "/Images"
"~/Gallary/") + txtname.Text + "/Images/{0}"
{0}
~/XML
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)