473,396 Members | 1,992 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,396 software developers and data experts.

OpenFileDialog from code-behind file

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.
Nov 16 '05 #1
6 4221
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

"John" <Jo**@nospam.com> wrote in message
news:eq**************@TK2MSFTNGP11.phx.gbl...
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.

Nov 16 '05 #2
Hi:

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

John.
"Bob Grommes" <bo*@bobgrommes.com> wrote in message
news:eV**************@TK2MSFTNGP12.phx.gbl...
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

"John" <Jo**@nospam.com> wrote in message
news:eq**************@TK2MSFTNGP11.phx.gbl...
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.


Nov 16 '05 #3
<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
"John" <Jo**@nospam.com> wrote in message
news:e5****************@TK2MSFTNGP12.phx.gbl...
| Hi:
|
| Nope, sure wouldn't. Is there a work-around to allow the user to access
| local files?
|
| John.
| "Bob Grommes" <bo*@bobgrommes.com> wrote in message
| news:eV**************@TK2MSFTNGP12.phx.gbl...
| > 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
| >
| > "John" <Jo**@nospam.com> wrote in message
| > news:eq**************@TK2MSFTNGP11.phx.gbl...
| >> 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.
| >>
| >>
| >
| >
|
|
Nov 16 '05 #4
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

"John" wrote:
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.

Nov 16 '05 #5
Hey all:

FOund my own answer... File Field HTML COntrol...Run as Server Control...

"Kyril Magnos" <ky**********@yahoo.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
<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
"John" <Jo**@nospam.com> wrote in message
news:e5****************@TK2MSFTNGP12.phx.gbl...
| Hi:
|
| Nope, sure wouldn't. Is there a work-around to allow the user to access
| local files?
|
| John.
| "Bob Grommes" <bo*@bobgrommes.com> wrote in message
| news:eV**************@TK2MSFTNGP12.phx.gbl...
| > 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
| >
| > "John" <Jo**@nospam.com> wrote in message
| > news:eq**************@TK2MSFTNGP11.phx.gbl...
| >> 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.
| >>
| >>
| >
| >
|
|

Nov 16 '05 #6
If you mean files on the user's machine, you might Google something like:

ASP.NET "file upload"

You'll get links such as:

http://www.codeproject.com/aspnet/fileupload.asp

Is that what you're after?

--Bob
"John" <Jo**@nospam.com> wrote in message
news:e5****************@TK2MSFTNGP12.phx.gbl...
Hi:

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

John.
"Bob Grommes" <bo*@bobgrommes.com> wrote in message
news:eV**************@TK2MSFTNGP12.phx.gbl...
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

"John" <Jo**@nospam.com> wrote in message
news:eq**************@TK2MSFTNGP11.phx.gbl...
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.

Nov 16 '05 #7

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

Similar topics

3
by: violin wang | last post by:
hi I wrote a windows based program.The main UI named form_base has a button "btn1".In btn1`s click event handler I used ShowDialog(this) to show another form named form_test.form_test also has a...
0
by: andrija | last post by:
When calling OpenFileDialog, in one project I get exception out of memory (untrappable), while in another it works ok. (I create a new project with just this code and it sometimes does not work,...
7
by: C# newbie | last post by:
Hello, using openfiledialog, how can I retrieve the path ? thx
1
by: Johann Blake | last post by:
A number of posts have indicated developers having problem getting an OpenFileDialog to startup in a specific directory when the dialog is shown. The first time you show the dialog, the...
4
by: Eps | last post by:
I have a problem that is driving me crazy, I have and openfiledialog but I can't seem to set its initial path. I have the initalDirecotry property set to the correct path but it always opens at...
1
by: Austin Jan | last post by:
Hi all, In this code snip try { using(OpenFileDialog dlg = new OpenFileDialog()) { //do something }
1
by: Olaf Baeyens | last post by:
In .NET v1.1 I am trying to select multiple files using OpenFileDialog like this OpenFileDialog openFileDialog=new OpenFileDialog(); openFileDialog.Multiselect=true; i...
5
by: bartmanson | last post by:
Hi everybody, this is my first post to this newsgroup. I have a problem with OpenFileDialog. I programmed a windows form that has a button that opens a OpenFileDialog. If a user chooses a file...
5
by: De kessé | last post by:
Im trying to do this from ASP.NET and it does not work. Dim ofd As New OpenFileDialog Openfiledialog is not there. But I can find it in the object browser. In my web config i can see this...
3
by: Jason | last post by:
Hi, I am developing .NET 1.1 desktop application, I want to pop up a OpenFileDialog that has a large Width and Height. However, there is no accessible OpenFileDialog.Width and...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.