Hi,
I am looking for a control that is similar to OpenFileDialog in Windows
forms for an ASP.NET web form. So when I click on a browser button, this
control can pop up for the user to open a file. Please give directions.
Thanks.
Jan 8 1573
What do you mean by "open a file?" A file is opened by some application.
What are you planning to do with the file?
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer http://www.takempis.com
Big Things are made up of
Lots of Little Things.
"Jan" <cjan@REMOVE_CAPS_AND_INVALIDbigfootsoftware.com.i nvalid> wrote in
message news:%2****************@TK2MSFTNGP12.phx.gbl... Hi,
I am looking for a control that is similar to OpenFileDialog in Windows forms for an ASP.NET web form. So when I click on a browser button, this control can pop up for the user to open a file. Please give directions. Thanks.
Jan
Sorry for the confusion. I meant "select a file". So when a user clicks on a
button, a dialog box (which I don't know if there is such a control for web
form) will pop up and the user can select a file. I read this article
( http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp) and try to do the
same in a web form.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... What do you mean by "open a file?" A file is opened by some application. What are you planning to do with the file?
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer http://www.takempis.com Big Things are made up of Lots of Little Things.
"Jan" <cjan@REMOVE_CAPS_AND_INVALIDbigfootsoftware.com.i nvalid> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... Hi,
I am looking for a control that is similar to OpenFileDialog in Windows forms for an ASP.NET web form. So when I click on a browser button, this control can pop up for the user to open a file. Please give directions. Thanks.
Jan
> Sorry for the confusion. I meant "select a file". So when a user clicks on
a
Again, if you select a file, you plan to do something with it. What would
that be?
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer http://www.takempis.com
Big Things are made up of
Lots of Little Things.
"Jan" <cjan@REMOVE_CAPS_AND_INVALIDbigfootsoftware.com.i nvalid> wrote in
message news:eH**************@TK2MSFTNGP10.phx.gbl... Sorry for the confusion. I meant "select a file". So when a user clicks on
a button, a dialog box (which I don't know if there is such a control for
web form) will pop up and the user can select a file. I read this article (http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp) and try to do the same in a web form.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... What do you mean by "open a file?" A file is opened by some application. What are you planning to do with the file?
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer http://www.takempis.com Big Things are made up of Lots of Little Things.
"Jan" <cjan@REMOVE_CAPS_AND_INVALIDbigfootsoftware.com.i nvalid> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... Hi,
I am looking for a control that is similar to OpenFileDialog in
Windows forms for an ASP.NET web form. So when I click on a browser button,
this control can pop up for the user to open a file. Please give
directions. Thanks.
Jan
I want to save the selected image file to database.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uQ**************@tk2msftngp13.phx.gbl... Sorry for the confusion. I meant "select a file". So when a user clicks
on a
Again, if you select a file, you plan to do something with it. What would that be?
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer http://www.takempis.com Big Things are made up of Lots of Little Things.
"Jan" <cjan@REMOVE_CAPS_AND_INVALIDbigfootsoftware.com.i nvalid> wrote in message news:eH**************@TK2MSFTNGP10.phx.gbl... Sorry for the confusion. I meant "select a file". So when a user clicks
on a button, a dialog box (which I don't know if there is such a control for web form) will pop up and the user can select a file. I read this article (http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp) and try to do the same in a web form.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... What do you mean by "open a file?" A file is opened by some
application. What are you planning to do with the file?
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer http://www.takempis.com Big Things are made up of Lots of Little Things.
"Jan" <cjan@REMOVE_CAPS_AND_INVALIDbigfootsoftware.com.i nvalid> wrote
in message news:%2****************@TK2MSFTNGP12.phx.gbl... > Hi, > > I am looking for a control that is similar to OpenFileDialog in Windows > forms for an ASP.NET web form. So when I click on a browser button, this > control can pop up for the user to open a file. Please give directions. > Thanks. > > Jan > >
Would using the HTML control 'File Upload' work?
"Jan" <cjan@REMOVE_CAPS_AND_INVALIDbigfootsoftware.com.i nvalid> wrote in
message news:#s**************@TK2MSFTNGP11.phx.gbl... I want to save the selected image file to database.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message news:uQ**************@tk2msftngp13.phx.gbl... Sorry for the confusion. I meant "select a file". So when a user
clicks on a
Again, if you select a file, you plan to do something with it. What
would that be?
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer http://www.takempis.com Big Things are made up of Lots of Little Things.
"Jan" <cjan@REMOVE_CAPS_AND_INVALIDbigfootsoftware.com.i nvalid> wrote in message news:eH**************@TK2MSFTNGP10.phx.gbl... Sorry for the confusion. I meant "select a file". So when a user
clicks on a button, a dialog box (which I don't know if there is such a control
for web form) will pop up and the user can select a file. I read this article (http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp) and try to do
the same in a web form.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... > What do you mean by "open a file?" A file is opened by some application. > What are you planning to do with the file? > > -- > HTH, > > Kevin Spencer > Microsoft MVP > .Net Developer > http://www.takempis.com > Big Things are made up of > Lots of Little Things. > > "Jan" <cjan@REMOVE_CAPS_AND_INVALIDbigfootsoftware.com.i nvalid>
wrote in > message news:%2****************@TK2MSFTNGP12.phx.gbl... > > Hi, > > > > I am looking for a control that is similar to OpenFileDialog in Windows > > forms for an ASP.NET web form. So when I click on a browser
button, this > > control can pop up for the user to open a file. Please give directions. > > Thanks. > > > > Jan > > > > > >
In article <#X**************@TK2MSFTNGP12.phx.gbl>, Jan wrote: Hi,
I am looking for a control that is similar to OpenFileDialog in Windows forms for an ASP.NET web form. So when I click on a browser button, this control can pop up for the user to open a file. Please give directions.
<input type="file" />
This is standard HTML, the browser will pop up an open-file dialog box
when the user clicks on the browse button, and then will submit the file
contents along with the form. How to handle it on the server side
depends a bit on what you're planning to do with the uploaded file.
--
David
dfoster at
hotpop dot com
> I want to save the selected image file to database.
Aha! In other words, you want to upload the file to the server, and save it
to a database. The HTML "input type=file" element is designed to do that.
There is also a .Net HtmlInputFile Control that you can use for this. Here
is alink to an article that describes the HtmlInputFile Control and how to
use it: http://msdn.microsoft.com/library/de...ilecontrol.asp
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer http://www.takempis.com
Big Things are made up of
Lots of Little Things.
"Jan" <cjan@REMOVE_CAPS_AND_INVALIDbigfootsoftware.com.i nvalid> wrote in
message news:%2****************@TK2MSFTNGP11.phx.gbl... I want to save the selected image file to database.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message news:uQ**************@tk2msftngp13.phx.gbl... Sorry for the confusion. I meant "select a file". So when a user
clicks on a
Again, if you select a file, you plan to do something with it. What
would that be?
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer http://www.takempis.com Big Things are made up of Lots of Little Things.
"Jan" <cjan@REMOVE_CAPS_AND_INVALIDbigfootsoftware.com.i nvalid> wrote in message news:eH**************@TK2MSFTNGP10.phx.gbl... Sorry for the confusion. I meant "select a file". So when a user
clicks on a button, a dialog box (which I don't know if there is such a control
for web form) will pop up and the user can select a file. I read this article (http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp) and try to do
the same in a web form.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... > What do you mean by "open a file?" A file is opened by some application. > What are you planning to do with the file? > > -- > HTH, > > Kevin Spencer > Microsoft MVP > .Net Developer > http://www.takempis.com > Big Things are made up of > Lots of Little Things. > > "Jan" <cjan@REMOVE_CAPS_AND_INVALIDbigfootsoftware.com.i nvalid>
wrote in > message news:%2****************@TK2MSFTNGP12.phx.gbl... > > Hi, > > > > I am looking for a control that is similar to OpenFileDialog in Windows > > forms for an ASP.NET web form. So when I click on a browser
button, this > > control can pop up for the user to open a file. Please give directions. > > Thanks. > > > > Jan > > > > > >
Duh! I just noticed the html control File Field...
"Jan" <cjan@REMOVE_CAPS_AND_INVALIDbigfootsoftware.com.i nvalid> wrote in
message news:%2****************@TK2MSFTNGP11.phx.gbl... I want to save the selected image file to database.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message news:uQ**************@tk2msftngp13.phx.gbl... Sorry for the confusion. I meant "select a file". So when a user
clicks on a
Again, if you select a file, you plan to do something with it. What
would that be?
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer http://www.takempis.com Big Things are made up of Lots of Little Things.
"Jan" <cjan@REMOVE_CAPS_AND_INVALIDbigfootsoftware.com.i nvalid> wrote in message news:eH**************@TK2MSFTNGP10.phx.gbl... Sorry for the confusion. I meant "select a file". So when a user
clicks on a button, a dialog box (which I don't know if there is such a control
for web form) will pop up and the user can select a file. I read this article (http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp) and try to do
the same in a web form.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... > What do you mean by "open a file?" A file is opened by some application. > What are you planning to do with the file? > > -- > HTH, > > Kevin Spencer > Microsoft MVP > .Net Developer > http://www.takempis.com > Big Things are made up of > Lots of Little Things. > > "Jan" <cjan@REMOVE_CAPS_AND_INVALIDbigfootsoftware.com.i nvalid>
wrote in > message news:%2****************@TK2MSFTNGP12.phx.gbl... > > Hi, > > > > I am looking for a control that is similar to OpenFileDialog in Windows > > forms for an ASP.NET web form. So when I click on a browser
button, this > > control can pop up for the user to open a file. Please give directions. > > Thanks. > > > > Jan > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jody Gelowitz |
last post by:
VS.NET 2002 and 2003 are installed.
..NET Framework 1.0 and 1.1 installed
Program running under VisualBasic.NET 2002 with .NET Framwork 1.0
I am experiencing a problem with ADO.NET where the...
|
by: bobrad |
last post by:
MAYBE SOMEBODY CAM HELP
I AM USING THE FOLLOWING CODE TO GET A LOCATION OF A FILE IN A WINFORM
DIALOG
OpenFileDialog openFileDialog = new OpenFileDialog();
OpenFileDialog.Filter = " Access...
|
by: don |
last post by:
has anyone experienced problems with interactions between OpenFileDialog and FileStream? When I select "open" from an OpenFileDialog the subsequent calls to FileStream do not create a file. If I do...
|
by: Nagachandra Sekhar Grandhi |
last post by:
I am facing a problem with OpenFileDialog. It is as follows.
I opened OpenFileDialog dialog box and selected a folder in it. After
selecting the folder when i tried to delete the same folder in...
|
by: e-mid |
last post by:
why does not openFileDialog have closed event?
i want to do something; as soon as the dialog closes. is there a way to do
this?
|
by: barbara_dave |
last post by:
Hi, All,
I want to use the openfiledialog to open different extension files in
different directory( only one type files at one time). I set the
OpenFiledialog InitialDirectory and Filter...
|
by: marcus.kwok |
last post by:
I am having a weird problem and I have can't figure out why it is
happening. I create an OpenFileDialog and set a filename filter. When
the dialog first opens, the filter works correctly, and...
|
by: sam |
last post by:
OpenFileDialog appears to be "holding onto" the parent folder of a
selected file until the application using the dialog quits.
After creating a folder containing a file, I attempted to select...
|
by: Martijn Mulder |
last post by:
It strikes me that System.Windows.Forms.OpenFileDialog seems te
'remember' which directory it was in last, even when a new
OpenFileDialog-object is created for every access to the file system....
|
by: mbewers1 |
last post by:
Hi
I'm having a problem trying to get a customised OpenFileDialog() to fulfil my requirements.
The code for this custom-built dialog has been taken from another site...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |