I want to add a file upload button to my web application in Visual Studio using C# in order to allow for the user to browse for a picture on his PC to save it in database. It is like when you want to attach file when you’re sending an email.
How can I add a file upload button to my website?
<asp:FileUpload ...if it's Asp.Net web forms(msdn.microsoft.com/en-us/library/…) beyond that can't help much more - you will need to provide more information. Oh yeah don't forgetenctype="multipart/form-data"on the enclosing form as @Widor's answer says