FileUpload page Jump cannot find the solution to the original page

Source: Internet
Author: User

Do a upload image function, before doing all right, completely can be achieved, but later when the time, as long as the FileUpload control inside the word (select the picture), then press button. It altogether does not perform the Button1_Click event, the direct page jumps, and then displays the page cannot be found. But if the fileupload is empty, it will be executed. What's going on here???
Take care of yourself. Is the reason for uploading the default size of 1M. Just change it in the config file, okay ?
Here's how to modify it:
You can change the limit of the size of the uploaded file
Add the following code to <system.web> </system.web> in Web. config:
Usefullyqualifiedredirecturl= "true" minfreethreads= "8"
Minlocalrequestfreethreads= "4" apprequestqueuelimit= "enableversionheader=" "true"/>
Explain:
HttpRuntime is to configure the ASP. NET HTTP runtime settings to determine how to handle requests to an ASP.
Executiontimeout: Represents the maximum time limit allowed to execute a request, in seconds
maxRequestLength: Indicates the maximum file upload size supported by ASP. This restriction can be used to prevent denial of service attacks that result from the user passing a large number of files to the server. The specified size is in kilobytes. The default value is 4096 KB (4 MB).
It looks like the biggest can be changed to 2G, you look at it.

FileUpload page Jump cannot find the solution to the original page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.