c# - OpenFileDialog in ASP.NET -


how can run sth openfiledialog? in asp.net there's no control.

yes, there's option use

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

but there's default name disabled modifications.

i found either solution

<input type="file" name="filediag" style="display:none" /> <input type="button" value="browse..." onclick="document.form1.filediag.click()" /> 

but doesn't work...or i'm doing sth wrong.

is there other possibility this?

you must have missed fileupload control - equivalent html input type="file" used uploading files.

it exposes uploaded file - name , contents.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -