
This simple article will show you how to upload a file to the server using the new FileUpload web control supplied in the new version of ASP.NET 2.0. A lot of times you required that the user of your web page uploads a file from his/her system to your web server. Maybe it is his/her picture that he wants to share with others or some other document like a report of some kind. In the previous version of ASP.NET 1.x there was an HTML control that was rendered as an input control of type file and you also need to set the form’s enctype to multipart/formdata to get the uploaded file on the server side code. In ASP.NET 2.0 a new control called ..
|