简体   繁体   中英

Simple file upload without using asp.net fileupload control

I have an html page and I want to upload a file usign the basic html input file without using the asp.net fileupload control. I tried to write the following code in the html page and redirect it to the home page (aspx page)

<form action ="../../default.aspx" enctype="multipart/form-data" method="post" name="myform">

                <input id="upload_file" type="file" />
                <input id="sumbit_button" type="submit" value="submit"/>

but the Request.Files does not contain the upload_file

不幸的是我没有得到任何答案,我通过使用aspx文件而不是html来解决了

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM