Torna al Thread

string Fromfile = Server.MapPath("../../../public/photo/" + rdr["Name"] + ""); string Tofile = Server.MapPath("../../../public/photo/" + txtTitolo.Text + ""); DirectoryInfo folder = new DirectoryInfo(Server.MapPath("../../../public/photo/")); if (folder.Exists) { Directory.Move(Fromfile, Tofile); } Response.Redirect("default.aspx");
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5