How do you get or save a file from/to a client (button on web page) once
they are authenticated? The client could be Mac, Linux or Windows. Can I do
it all with IIS and ASP.NET? 6 1793
To send a file to the client it can be as simple as redirecting them to the
file with code like this:
Response.Redire ct("SomeFile.do c")
To allow the user to upload a file to your server, you can use the file
upload control on your toolbar, or type it into the HTML manually:
<input type=file id=myFile runat=server />
These articles provide working examples for you: http://steve.orr.net/content/asp200307so_f.asp http://aspalliance.com/das/tutorial/fileupload.aspx
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"jake" <ja**@jake.co m> wrote in message
news:ul******** *****@TK2MSFTNG P12.phx.gbl... How do you get or save a file from/to a client (button on web page) once they are authenticated? The client could be Mac, Linux or Windows. Can I
do it all with IIS and ASP.NET?
Thanks Steve,
This HTML server control, will give a text box and browse button, and it
will work on all platforms/web browsers (Mac, Linux, Windows)?
Also, how can I get this file to be uploaded automatically every so often /
days? Would the browser have to be run minimized after the initial file
info was taken and the 'button' pressed? Could the browser auto-open
minimized and send the file or something?
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:Or******** ******@TK2MSFTN GP12.phx.gbl... To send a file to the client it can be as simple as redirecting them to
the file with code like this: Response.Redire ct("SomeFile.do c")
To allow the user to upload a file to your server, you can use the file upload control on your toolbar, or type it into the HTML manually: <input type=file id=myFile runat=server />
These articles provide working examples for you: http://steve.orr.net/content/asp200307so_f.asp http://aspalliance.com/das/tutorial/fileupload.aspx
-- I hope this helps, Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"jake" <ja**@jake.co m> wrote in message news:ul******** *****@TK2MSFTNG P12.phx.gbl... How do you get or save a file from/to a client (button on web page) once they are authenticated? The client could be Mac, Linux or Windows. Can
I do it all with IIS and ASP.NET?
You will not be able to have the file reuploaded automatically. It can only
happen when the user manually performs an action (such as clicking the
button). Otherwise this would be a major security hole, as web sites could
upload user files at will.
"jake" <ja**@jake.co m> wrote in message
news:OH******** ******@TK2MSFTN GP09.phx.gbl... Thanks Steve,
This HTML server control, will give a text box and browse button, and it will work on all platforms/web browsers (Mac, Linux, Windows)?
Also, how can I get this file to be uploaded automatically every so often
/ days? Would the browser have to be run minimized after the initial file info was taken and the 'button' pressed? Could the browser auto-open minimized and send the file or something?
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message news:Or******** ******@TK2MSFTN GP12.phx.gbl... To send a file to the client it can be as simple as redirecting them to the file with code like this: Response.Redire ct("SomeFile.do c")
To allow the user to upload a file to your server, you can use the file upload control on your toolbar, or type it into the HTML manually: <input type=file id=myFile runat=server />
These articles provide working examples for you: http://steve.orr.net/content/asp200307so_f.asp http://aspalliance.com/das/tutorial/fileupload.aspx
-- I hope this helps, Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"jake" <ja**@jake.co m> wrote in message news:ul******** *****@TK2MSFTNG P12.phx.gbl... How do you get or save a file from/to a client (button on web page)
once they are authenticated? The client could be Mac, Linux or Windows.
Can I do it all with IIS and ASP.NET?
Yes, the standard HTML file upload control *should* work in all browsers,
but you should (always) test your web sites with the platforms you choose to
support.
As for getting the upload to happen automatically, that's a whole different
can of worms involving plenty of security hoops. I know I wouldn't want you
downloading files off my computer whenever you feel like it. (Nothing
personal.)
You'll need a thick client of some kind to pull that off, such as a full
blown .NET Windows Forms application or a Windows Service. And obviously
those are not cross platform.
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"jake" <ja**@jake.co m> wrote in message
news:OH******** ******@TK2MSFTN GP09.phx.gbl... Thanks Steve,
This HTML server control, will give a text box and browse button, and it will work on all platforms/web browsers (Mac, Linux, Windows)?
Also, how can I get this file to be uploaded automatically every so often
/ days? Would the browser have to be run minimized after the initial file info was taken and the 'button' pressed? Could the browser auto-open minimized and send the file or something?
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message news:Or******** ******@TK2MSFTN GP12.phx.gbl... To send a file to the client it can be as simple as redirecting them to the file with code like this: Response.Redire ct("SomeFile.do c")
To allow the user to upload a file to your server, you can use the file upload control on your toolbar, or type it into the HTML manually: <input type=file id=myFile runat=server />
These articles provide working examples for you: http://steve.orr.net/content/asp200307so_f.asp http://aspalliance.com/das/tutorial/fileupload.aspx
-- I hope this helps, Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"jake" <ja**@jake.co m> wrote in message news:ul******** *****@TK2MSFTNG P12.phx.gbl... How do you get or save a file from/to a client (button on web page)
once they are authenticated? The client could be Mac, Linux or Windows.
Can I do it all with IIS and ASP.NET?
So a Timer event would not work, if the browser stayed open? (I have to get
a file daily) using SSL somehow over http. I thought that would be the
easiest solution.
"Marina" <so*****@nospam .com> wrote in message
news:%2******** **********@TK2M SFTNGP12.phx.gb l... You will not be able to have the file reuploaded automatically. It can
only happen when the user manually performs an action (such as clicking the button). Otherwise this would be a major security hole, as web sites
could upload user files at will.
"jake" <ja**@jake.co m> wrote in message news:OH******** ******@TK2MSFTN GP09.phx.gbl... Thanks Steve,
This HTML server control, will give a text box and browse button, and it will work on all platforms/web browsers (Mac, Linux, Windows)?
Also, how can I get this file to be uploaded automatically every so
often / days? Would the browser have to be run minimized after the initial file info was taken and the 'button' pressed? Could the browser auto-open minimized and send the file or something?
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message news:Or******** ******@TK2MSFTN GP12.phx.gbl... To send a file to the client it can be as simple as redirecting them
to the file with code like this: Response.Redire ct("SomeFile.do c")
To allow the user to upload a file to your server, you can use the
file upload control on your toolbar, or type it into the HTML manually: <input type=file id=myFile runat=server />
These articles provide working examples for you: http://steve.orr.net/content/asp200307so_f.asp http://aspalliance.com/das/tutorial/fileupload.aspx
-- I hope this helps, Steve C. Orr, MCSD, MVP http://Steve.Orr.net
"jake" <ja**@jake.co m> wrote in message news:ul******** *****@TK2MSFTNG P12.phx.gbl... > How do you get or save a file from/to a client (button on web page) once > they are authenticated? The client could be Mac, Linux or Windows. Can I do > it all with IIS and ASP.NET? > >
No, a Timer is a .NET Framework class (unless you are referring to something
else), which would be useless anyway, as the server can fire all the events
from a Timer it wants, there is no way to get anything over to the client
after the initial request, as HTTP is stateless.
And as I (and Steve) said previously, if there was anyway to do it, it would
be a major security hole.
"jake" <ja**@jake.co m> wrote in message
news:eu******** ********@TK2MSF TNGP12.phx.gbl. .. So a Timer event would not work, if the browser stayed open? (I have to
get a file daily) using SSL somehow over http. I thought that would be the easiest solution.
"Marina" <so*****@nospam .com> wrote in message news:%2******** **********@TK2M SFTNGP12.phx.gb l... You will not be able to have the file reuploaded automatically. It can only happen when the user manually performs an action (such as clicking the button). Otherwise this would be a major security hole, as web sites could upload user files at will.
"jake" <ja**@jake.co m> wrote in message news:OH******** ******@TK2MSFTN GP09.phx.gbl... Thanks Steve,
This HTML server control, will give a text box and browse button, and
it will work on all platforms/web browsers (Mac, Linux, Windows)?
Also, how can I get this file to be uploaded automatically every so often / days? Would the browser have to be run minimized after the initial
file info was taken and the 'button' pressed? Could the browser auto-open minimized and send the file or something?
"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message news:Or******** ******@TK2MSFTN GP12.phx.gbl... > To send a file to the client it can be as simple as redirecting them to the > file with code like this: > Response.Redire ct("SomeFile.do c") > > To allow the user to upload a file to your server, you can use the file > upload control on your toolbar, or type it into the HTML manually: > <input type=file id=myFile runat=server /> > > These articles provide working examples for you: > http://steve.orr.net/content/asp200307so_f.asp > http://aspalliance.com/das/tutorial/fileupload.aspx > > -- > I hope this helps, > Steve C. Orr, MCSD, MVP > http://Steve.Orr.net > > > "jake" <ja**@jake.co m> wrote in message > news:ul******** *****@TK2MSFTNG P12.phx.gbl... > > How do you get or save a file from/to a client (button on web
page) once > > they are authenticated? The client could be Mac, Linux or
Windows. Can I > do > > it all with IIS and ASP.NET? > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dan V. |
last post by:
Situation:
I have to connect with my Windows 2000 server using VS.NET 2003 and C# and
connect to a remote Linux server at another company's office and query their
XML file. Their file may be updated every hour or so. How can I do this
easily? I would like to use secure communication even encryption if
possible. I would query and insert locally only the newest records found in
that XML file to an xml or MS access db.
|
by: POnfri |
last post by:
Hi,
I have a problem in a peace of code were i'm doing a file copy using
File.Copy. The Source is local and the target is a remote machine.
Example: File.Copy(C:\temp\hi.txt, \\myremote\c$\temp\hi.txt, true);
This API is run from a web service that exposes it. The problem is as follows:
1) I request a page (On the web service machine) from my web server (Note
|
by: Richard |
last post by:
Hi
I'm new to ASP/Web programming so any help would be appreciated...
Situation: On my web page I would like to present a link {or button} that would allow the user to download a large file. When the user clicks to start the download I would like to display the "Save As" dialog, allow the user to name a place to save the file, and then show the download progress bar while the file downloads
Question:
How do I make a windows "Save...
|
by: theyas |
last post by:
How can I get my code to NOT display two "Open/Save/Cancel/More Info" dialog boxes when using the "Response.WriteFile" method to download a file to IE
I've asked about this before and didn't get a satisfactory answer (check your browser) so now that I've had the time to set up a reasonable little test that I can post somewhere, I'll try again.
The app I've written has three ASPX pages. One is a combined page which writes a little text...
|
by: Daniel Walzenbach |
last post by:
Hi,
I have a Website which allows users to input data. After they finished entering data they can click a button to save their input. Problem now is, that I have no possibility to visualize that the page is being saved and when it is (hopefully) done saving.
I thought about a modal window being opened using JavaScript when they click the save button telling them that the data is being saved. After saving is completed I could use...
| |
by: Nathan |
last post by:
I have an aspx page with a data grid, some textboxes, and an update button.
This page also has one html input element with type=file (not inside the data
grid and runat=server).
The update button will verify the information that has been entered and
updates the data base if the data is correct. Update will throw an exception
if the data is not validate based on some given rules. I also have a custom
error handling page to show the...
|
by: Jonny |
last post by:
Hello Group
How do I open a Save File Dialog from an ASPX page behind a browse button?
Any help would be fantastic!!
I am using ASP.NET 1.1 using VB.NET as the coding language
TIA
|
by: Cheryl Langdon |
last post by:
Hello everyone,
This is my first attempt at getting help in this manner. Please
forgive me if this is an inappropriate request.
I suddenly find myself in urgent need of instruction on how to
communicate with a MySQL database table on a web server, from inside
of my company's Access-VBA application. I know VBA pretty well but
have never before needed to do this HTTP/XML/MySQL type functions.
|
by: =?Utf-8?B?RnJlZU5FYXN5?= |
last post by:
Hello,
the scenario:
There's an ASPX page which shows some text and has three buttons at the
bottom: Save, Print and Close. Print and close is done by javascript. But how
can I save the page on the client's computer? He/she could do this using the
browser (file/save), but I need to have it done by pressing the pushbutton.
In my serverside code I get the button-click-event, I also know how to get
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |