473,395 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Fileopendialog

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
Nov 18 '05 #1
1 2136
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" <an****@ptm-software.com> wrote in message
news:Oe****************@TK2MSFTNGP10.phx.gbl...
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

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Adlai Stevenson | last post by:
For a Windows Form app, that consumes a web service. I want the option of being able to run this as a scheduled job in a batch mode. The app ( which I call XMailMan) form has two controls, a...
1
by: a_rybicki | last post by:
"Hi - I'm experiencing something strange when I call a FileOpenDialog from a dialog box in my application (Borland C++ 6). Basically, here's the scenario: - Open my own child dialog from the...
2
by: S.Kartikeyan | last post by:
Hello group, I have the follwing problem with microsoft web browser activex control. I have a fileopendialog control. I open different files in the IEActivex control based on the filename in the...
3
by: gregma | last post by:
I hope this hasn't been covered a million times!! I have searched for alternatives to selecting a directory or multiple directories using FileOpenDialog, and haven't found anything like I need. I...
5
by: TomTom | last post by:
Hi, I am creating a simple .NET UI app and have a question on the way parameters are passed between classes. Here is the situation. 1. I created a UI (Form1 class). This UI has many UI...
13
by: Randall Arnold | last post by:
I'm not happy with the order in which OpenFileDialog retrieves multiple selected files. I want them in Date order, oldest to newest, but by default they come in by filename, last to first. The...
2
by: randy1200 | last post by:
My user interface needs to allow the user to select a default directory. When I say the following: if (openFileDialog1.ShowDialog() == DialogResult.OK) { //record path } The problem here is...
2
by: Peted | last post by:
Hi is there a way to use the fileopen dialog in c# 2008, so that when i am traversing a directory to find a file to open, if i click on a shortcut to a file or a shortcut to a directory, it will...
0
by: shamshujjuhah | last post by:
I am using the following code to open file. Now I want to position the fileopen dialog to the centre of screen. Can someone tell me how can I acheive this? code: -------------- OpenFileDialog...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.