protected void savebtn_Click(object sender, EventArgs e) {
strFileName = "~/album/" "/" + FileUpload1.FileName.ToString(); FileUpload1.PostedFile.SaveAs(Server.MapPath(strFileName ));
a = Fup1.FileName.Split('.'); fileName1 = Convert.ToString(System.DateTime.Now.Ticks) + "." + a.GetValue(1).ToString(); FilePath = Server.MapPath(@"~\MDAFile"); Fup1.SaveAs(FilePath + @"\" + fileName1); string filename = FilePath + @"\" + fileName1;
using System.IO;
File.Move(@"~/album/", @"Your_New_File_Path\" + Text1.Text);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)