Saturday, September 1, 2018

File upload direct on server folder and sub folder

Folder direct on server

FileUpload1.SaveAs(Server.MapPath("~") + "//maildata//" + FileUpload1.FileName);




Folder inside sub folder 

 FileUpload1.SaveAs(Server.MapPath(@"~/Admin/") + "//impact//" + FileUpload1.FileName);


  Label1.Text = FileUpload1.FileName;

No comments:

Post a Comment

GRIDVIEW ON ROW DATA BOUND EVENT

 Database Create  Student : roll , name , city , cost  Fix 6 Value  in Database Record  ====================================================...