<asp:FileUpload ID="fileupload" runat="server"/>
d:/foldername/foldername/...
Server.MapPath(FileUpload1.FileName);
<pre><asp:FileUpload ID="FileUpload1" runat="server" /><br /> <asp:Button ID="Button2" runat="server" Text="Upload" onclick="Button2_Click"/> <br /> protected void Button2_Click(object sender, EventArgs e) { FileUpload1.SaveAs(Server.MapPath("~/Uploads")+FileUpload1.FileName); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)