koin
koin

Reputation: 79

How to create a browse button

How can a ASP.NET button be used to browse and upload items from my computer? Using C# language if needed.

Upvotes: 0

Views: 1407

Answers (1)

Joachim VR
Joachim VR

Reputation: 2340

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.

Upvotes: 3

Related Questions