| | |
Uploading files from client to server
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
Add a FileUpload control to your page
And then add this code to your upload button
ASP.NET Syntax (Toggle Plain Text)
<asp:FileUpload ID="FileUpload" runat="server" Width="408px" />
ASP.NET Syntax (Toggle Plain Text)
'Save uploaded file to server FileUpload.PostedFile.SaveAs(Server.MapPath("~/UserImages/") & _ FileUpload.PostedFile.FileName)
Last edited by ptaylor965; Apr 30th, 2008 at 2:57 am.
![]() |
Similar Threads
- Custom HttpHandler. (ASP.NET)
- Turning C++ game into a Multiplayer game, Client/Server (Game Development)
- 500 Internal Server Error - with a twist (Perl)
- modify script (Perl)
- Uploading images on a server (ASP)
Other Threads in the ASP.NET Forum
- Previous Thread: Problem selecting item in list box
- Next Thread: check this sql server login error
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax appliances asp asp.net beginner bottomasp.net box browser businesslogiclayer button c# c#gridviewcolumn cac checkbox class click compatible confirmationcodegeneration content contenttype control countryselector courier css database datagrid datagridview datalist deadlock deployment development dgv dialog dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv forms gridview gudi homeedition iframe iis javascript jquery list menu mono mssql multistepregistration nameisnotdeclared novell objects opera order problem ratings redirect registration relationaldatabases reportemail rotatepage search security serializesmo.table sessionvariables silverlight smartcard smoobjects software sql ssl tracking treeview validatedate validation vb.net virtualdirectory vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment wizard xml xsl





