473,405 Members | 2,272 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,405 software developers and data experts.

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.

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?
Nov 18 '05 #1
6 1769
To send a file to the client it can be as simple as redirecting them to the
file with code like this:
Response.Redirect("SomeFile.doc")

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.com> wrote in message
news:ul*************@TK2MSFTNGP12.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?

Nov 18 '05 #2
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.net> wrote in message
news:Or**************@TK2MSFTNGP12.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.Redirect("SomeFile.doc")

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.com> wrote in message
news:ul*************@TK2MSFTNGP12.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?


Nov 18 '05 #3
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.com> wrote in message
news:OH**************@TK2MSFTNGP09.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.net> wrote in message
news:Or**************@TK2MSFTNGP12.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.Redirect("SomeFile.doc")

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.com> wrote in message
news:ul*************@TK2MSFTNGP12.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?



Nov 18 '05 #4
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.com> wrote in message
news:OH**************@TK2MSFTNGP09.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.net> wrote in message
news:Or**************@TK2MSFTNGP12.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.Redirect("SomeFile.doc")

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.com> wrote in message
news:ul*************@TK2MSFTNGP12.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?



Nov 18 '05 #5
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******************@TK2MSFTNGP12.phx.gbl...
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.com> wrote in message
news:OH**************@TK2MSFTNGP09.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.net> wrote in message
news:Or**************@TK2MSFTNGP12.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.Redirect("SomeFile.doc")

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.com> wrote in message
news:ul*************@TK2MSFTNGP12.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?
>
>



Nov 18 '05 #6
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.com> wrote in message
news:eu****************@TK2MSFTNGP12.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******************@TK2MSFTNGP12.phx.gbl...
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.com> wrote in message
news:OH**************@TK2MSFTNGP09.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.net> wrote in message
news:Or**************@TK2MSFTNGP12.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.Redirect("SomeFile.doc")
>
> 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.com> wrote in message
> news:ul*************@TK2MSFTNGP12.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?
> >
> >
>
>



Nov 18 '05 #7

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

Similar topics

7
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...
1
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,...
4
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. ...
7
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...
12
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...
15
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...
4
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
15
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...
12
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.