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 -

java - where to store the user credentials in an enterprise application(EAI)? -

openxml - Programmatically format a date in an excel sheet using Office Open Xml SDK -