tags:

views:

33

answers:

2

Hi, I want to open file dialog on click of a button in asp.net without using file upload control.

Please let me know the way to do this.

Thanks Rupa

A: 

You could use HTML directly if you don't like server controls: <input type="file" name="foo" />

Darin Dimitrov
A: 

The only way to open a browse dialog (short of using from client side plugin, such as a Java Applet) is to use the file type input:

<input type="file" name="somename" /> 

This is what the FileUpload control renders.

If you don't want to use that control, you can just use the direct HTML element.

Each browser will render this slightly differently though.

Michael Shimmins