Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Fileopendialog

Reply
Thread Tools

Fileopendialog

 
 
Anita C
Guest
Posts: n/a
 
      12-02-2003
I am trying to follow the Ms sample in the .Net
SDK/Technologies/Interop/PlatformInvoke/WinAPIs/CS-
to click on a button on a webform to bring up the fileopendialog. But it
does not seem to work and the process timesout. Can someone please point out
any sample etc. which might be using the Win.API or any other technique to
customize a fileopendialog. The reason why I am trying to use the API
instead of the HTML input= file is that I need to specify the directory and
the filter for the openfiledialog.
Thanks in advance


 
Reply With Quote
 
 
 
 
S. Justin Gengo
Guest
Posts: n/a
 
      12-02-2003
Anita,

If you open a file dialog in your code you are actually opening that dialog
on the server not on the client. You have to keep in mind that web
programming is disconnected.

The code-behind you run on the server exists only on the server. Then when
the html page is compiled the server sends that compiled page to the web
browser.

You've only got two choices here. You'll need to install a program on the
client, which will require their permission when downloaded (you could use
an active x component or if the client has the .Net framework installed on
it you could make calls to the framework on the client). Or you'll need to
use the html file input.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche


"Anita C" <> wrote in message
news:Oex4%...
> I am trying to follow the Ms sample in the .Net
> SDK/Technologies/Interop/PlatformInvoke/WinAPIs/CS-
> to click on a button on a webform to bring up the fileopendialog. But it
> does not seem to work and the process timesout. Can someone please point

out
> any sample etc. which might be using the Win.API or any other technique to
> customize a fileopendialog. The reason why I am trying to use the API
> instead of the HTML input= file is that I need to specify the directory

and
> the filter for the openfiledialog.
> Thanks in advance
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Defaulting FileOpenDialog to previous directory sreastman General Computer Support 0 03-25-2013 02:53 PM
FileOpenDialog - problem with writting a_rybicki@janika.net C++ 1 01-16-2005 12:20 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57