You cannot use a specific OpenFileDialog (a la C # / winforms / wpf) in a web application (without using Silverlight or another plugin).
All you can do is use the file input tag, which will force the browser to open the default browser dialog when the user clicks the browse button:
<input type="file" name="elementName" />
When the form is submitted, this file will be included as part of the input stream.
For a complete specification of the <input> element, go here: http://www.w3schools.com/tags/tag_input.asp
source share