OpenFileDialog from code-behind file

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi all:

Is it possible to use an OpenFileDIalog from an ASP.NET application code
behind file teh same way a Windows Application can?

Thanks.

John.
 
You would only succeed in popping up the OpenFile dialog on the server, even
if it would work. That would do the user no good.

--Bob
 
Hi:

Nope, sure wouldn't. Is there a work-around to allow the user to access
local files?

John.
 
<input type="File" />, which will give the user a browse button but it will
also give them the idea of uploading a file ;-). Other than that, you might
want to write an ActiveX control.
--
HTH

Kyril Magnos
| Hi:
|
| Nope, sure wouldn't. Is there a work-around to allow the user to access
| local files?
|
| John.
| | > You would only succeed in popping up the OpenFile dialog on the server,
| > even
| > if it would work. That would do the user no good.
| >
| > --Bob
| >
| > | >> Hi all:
| >>
| >> Is it possible to use an OpenFileDIalog from an ASP.NET application
code
| >> behind file teh same way a Windows Application can?
| >>
| >> Thanks.
| >>
| >> John.
| >>
| >>
| >
| >
|
|
 
I don't have the Java or VB script in front of me but yes there is a way to this. You have to do it with script and embed the script in your web page output as it must run on the client side. Also it might only work on up-version browsers. Try "view source" on a web page that opens the dialog box - you'll see the script code that does it...

--Richard
 
Back
Top