FileUpload Control - Shalvin

Please support our ASP.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Shalvin Shalvin is offline Offline Mar 12th, 2008, 1:39 am |
0
Uploading a file to a specific folder inside the virtual directory.
Quick reply to this message  
ASP.NET Syntax
  1. FileUpload1.SaveAs(Server.MapPath("~/") + "Photos\\Shalvin\\" + FileUpload1.FileName);
  2. Response.Write("File uploaded successfully");

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC