How can a ASP.NET button be used to browse and upload items from my computer? Using C# language if needed.
You can't use <asp:Button />
for that. You should use the <asp:FileUpload />
control instead.
The myUploadControl.FileBytes
then contains the byte array containing the file data.
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.