How to correctly use the ASP. NET FileUpload control 60 ASP NET controls should rather be placed in aspx markup file That is the preferred way of working with them So add FileUpload control to your page Make sure it has all required attributes including ID and runat:
How to increase the max upload file size in ASP. NET? 0 I have a blog post on how to increase the file size for asp upload control From the post: By default, the FileUpload control allows a maximum of 4MB file to be uploaded and the execution timeout is 110 seconds These properties can be changed from within the web config file’s httpRuntime section