I am going to show you how to use the ASP.NET FileUpload and CustomValidator controls together. I setup a web form named FileUploadPage.aspx that allows a user to upload a .jpg picture file to the server. The example code performs validation on the uploaded file to ensure that the size of the file falls within a certain range. If the validation succeeds, the code saves the file to a folder called ?uploads?. You could store a reference to the file in a database table, which is a common question I receive from students. ...
Go to the complete details ...