For the fileupload Server Control example, Asp.net cannot find the control for uploading files,

Source: Internet
Author: User
<Input id = "upfile4" type = file runat = "server">
It is automatically generated. I can use request. Form [upfile4] to access the value, but I cannot find the control using request. files. I can see that the value of request. Files. Count is 0.
Upfile4 is automatically generated.
Request. form can be found, but request. Files cannot be found. What is that?
On another page, the access is successful, CodeIs the same,
I add a fixed <input id = "upfil" type = file runat = "server">, request. files. if the value of count is still 0, I suspect there is a problem with my settings. It is not a problem with the code. I found the form attribute and finally found it.

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.