Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: how to download an existing file from server


Message #1 by "Mouna Elias" <monae@i...> on Tue, 23 Jan 2001 05:57:39 -0000
hi ,

I created an *.xls file at the server , and I want the client to be able

to dawnload it if he wants (by clicking a button) , so how can I do that

in ASP code ?

Message #2 by "Bassel Issa" <basselih@h...> on Tue, 23 Jan 2001 11:40:15 -0000
you can only do that if use a component. i will send you its name







>From: "Mouna Elias" <monae@i...>

>Reply-To: "ASP Web HowTo" <asp_web_howto@p...>

>To: "ASP Web HowTo" <asp_web_howto@p...>

>Subject: [asp_web_howto] how to download an existing file from server

>Date: Tue, 23 Jan 2001 05:57:39 -0000

>

>hi ,

>I created an *.xls file at the server , and I want the client to be able

>to dawnload it if he wants (by clicking a button) , so how can I do that

>in ASP code ?

>
Message #3 by Gregory_Griffiths@c... on Tue, 23 Jan 2001 13:39:50 +0000
Just add the link as normal, <a href="myfile.xls">MyFile.xls</a> and 

hten depending on the browsers configuration and the client PC's MIME 

types (niether of which you can change) it will handle the file. You 

may want to consider how it would work in an non-MS/non-Excel 

environment such as Linux, Unix, Mac or a home user without Excel.



> -----Original Message-----

> From: monae@i... [mailto:monae@i...]

> Sent: 23 January 2001 05:58

> To: asp_web_howto@p...

> Subject: [asp_web_howto] how to download an existing file from server

> 

> 

> hi ,

> I created an *.xls file at the server , and I want the client 

> to be able

> to dawnload it if he wants (by clicking a button) , so how 

> can I do that

> in ASP code ?

Message #4 by Mona Elias <MonaE@i...> on Wed, 24 Jan 2001 07:13:11 +0200
Hi Gregory ,



I have tried this but it opens for me the file in the browser and not saving

it , I want to do the same as when we do it with *.exe files , it giving us

a "save as"  window , and then the user can chose where to save it !



Thank You !

Mouna Elias.



-----Original Message-----

From: Gregory_Griffiths@c... [mailto:Gregory_Griffiths@c...]

Sent: Tuesday, January 23, 2001 3:40 PM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: how to download an existing file from server





Just add the link as normal, <a href="myfile.xls">MyFile.xls</a> and 

hten depending on the browsers configuration and the client PC's MIME 

types (niether of which you can change) it will handle the file. You 

may want to consider how it would work in an non-MS/non-Excel 

environment such as Linux, Unix, Mac or a home user without Excel.



> -----Original Message-----

> From: monae@i... [mailto:monae@i...]

> Sent: 23 January 2001 05:58

> To: asp_web_howto@p...

> Subject: [asp_web_howto] how to download an existing file from server

> 

> 

> hi ,

> I created an *.xls file at the server , and I want the client 

> to be able

> to dawnload it if he wants (by clicking a button) , so how 

> can I do that

> in ASP code ?

Message #5 by Gregory_Griffiths@c... on Wed, 24 Jan 2001 09:20:55 +0000
Mouna,

	You can't alter this, what is going on is defined by the MIME 

types on the client machine, you have no access to this via a web 

browser as it is stored in the registry, each user may handle the file 

differently, you can change YOUR MIME types to get this to work if you 

want.



> -----Original Message-----

> From: MonaE@i... [mailto:MonaE@i...]

> Sent: 24 January 2001 05:13

> To: MonaE@i...; asp_web_howto@p...

> Subject: [asp_web_howto] RE: how to download an existing file from ser

> ver

> 

> 

> Hi Gregory ,

> 

> I have tried this but it opens for me the file in the browser 

> and not saving

> it , I want to do the same as when we do it with *.exe files 

> , it giving us

> a "save as"  window , and then the user can chose where to save it !

> 

> Thank You !

> Mouna Elias.

> 

> -----Original Message-----

> From: Gregory_Griffiths@c... 

> [mailto:Gregory_Griffiths@c...]

> Sent: Tuesday, January 23, 2001 3:40 PM

> To: ASP Web HowTo

> Subject: [asp_web_howto] RE: how to download an existing file 

> from server

> 

> 

> Just add the link as normal, <a href="myfile.xls">MyFile.xls</a> and 

> hten depending on the browsers configuration and the client PC's MIME 

> types (niether of which you can change) it will handle the file. You 

> may want to consider how it would work in an non-MS/non-Excel 

> environment such as Linux, Unix, Mac or a home user without Excel.

> 

> > -----Original Message-----

> > From: monae@i... [mailto:monae@i...]

> > Sent: 23 January 2001 05:58

> > To: asp_web_howto@p...

> > Subject: [asp_web_howto] how to download an existing file 

> from server

> > 

> > 

> > hi ,

> > I created an *.xls file at the server , and I want the client 

> > to be able

> > to dawnload it if he wants (by clicking a button) , so how 

> > can I do that

> > in ASP code ?

> 
Message #6 by Mona Elias <MonaE@i...> on Wed, 24 Jan 2001 14:31:25 +0200
hi ,



what is MIME ???



-----Original Message-----

From: Gregory_Griffiths@c... [mailto:Gregory_Griffiths@c...]

Sent: Wednesday, January 24, 2001 11:21 AM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: how to download an existing file from ser ver





Mouna,

	You can't alter this, what is going on is defined by the MIME 

types on the client machine, you have no access to this via a web 

browser as it is stored in the registry, each user may handle the file 

differently, you can change YOUR MIME types to get this to work if you 

want.



> -----Original Message-----

> From: MonaE@i... [mailto:MonaE@i...]

> Sent: 24 January 2001 05:13

> To: MonaE@i...; asp_web_howto@p...

> Subject: [asp_web_howto] RE: how to download an existing file from ser

> ver

> 

> 

> Hi Gregory ,

> 

> I have tried this but it opens for me the file in the browser 

> and not saving

> it , I want to do the same as when we do it with *.exe files 

> , it giving us

> a "save as"  window , and then the user can chose where to save it !

> 

> Thank You !

> Mouna Elias.

> 

> -----Original Message-----

> From: Gregory_Griffiths@c... 

> [mailto:Gregory_Griffiths@c...]

> Sent: Tuesday, January 23, 2001 3:40 PM

> To: ASP Web HowTo

> Subject: [asp_web_howto] RE: how to download an existing file 

> from server

> 

> 

> Just add the link as normal, <a href="myfile.xls">MyFile.xls</a> and 

> hten depending on the browsers configuration and the client PC's MIME 

> types (niether of which you can change) it will handle the file. You 

> may want to consider how it would work in an non-MS/non-Excel 

> environment such as Linux, Unix, Mac or a home user without Excel.

> 

> > -----Original Message-----

> > From: monae@i... [mailto:monae@i...]

> > Sent: 23 January 2001 05:58

> > To: asp_web_howto@p...

> > Subject: [asp_web_howto] how to download an existing file 

> from server

> > 

> > 

> > hi ,

> > I created an *.xls file at the server , and I want the client 

> > to be able

> > to dawnload it if he wants (by clicking a button) , so how 

> > can I do that

> > in ASP code ?

> 
Message #7 by Gregory_Griffiths@c... on Wed, 24 Jan 2001 12:59:58 +0000
MIME is the name given to in this case to a list of handlers that 

determine what acitons are available for a given file type (such as 

DOC, EXE, HTML etc) and what each of these actions does. E.g :



DOC

	Open Action = Open Word and then open selected file in Word

HTML

	Open Action = Open Internet Explorer and then open selected file 

in Internet Explorer



They can be found in the Windows Explorer under View / Options / File 

Types or in the Registry.



> -----Original Message-----

> From: MonaE@i... [mailto:MonaE@i...]

> Sent: 24 January 2001 12:31

> To: asp_web_howto@p...

> Cc: MonaE@i...

> Subject: [asp_web_howto] RE: how to download an existing file from ser

> ver

> 

> 

> hi ,

> 

> what is MIME ???

> 

> -----Original Message-----

> From: Gregory_Griffiths@c... 

> [mailto:Gregory_Griffiths@c...]

> Sent: Wednesday, January 24, 2001 11:21 AM

> To: ASP Web HowTo

> Subject: [asp_web_howto] RE: how to download an existing file 

> from ser ver

> 

> 

> Mouna,

> 	You can't alter this, what is going on is defined by the MIME 

> types on the client machine, you have no access to this via a web 

> browser as it is stored in the registry, each user may handle 

> the file 

> differently, you can change YOUR MIME types to get this to 

> work if you 

> want.

> 

> > -----Original Message-----

> > From: MonaE@i... [mailto:MonaE@i...]

> > Sent: 24 January 2001 05:13

> > To: MonaE@i...; asp_web_howto@p...

> > Subject: [asp_web_howto] RE: how to download an existing 

> file from ser

> > ver

> > 

> > 

> > Hi Gregory ,

> > 

> > I have tried this but it opens for me the file in the browser 

> > and not saving

> > it , I want to do the same as when we do it with *.exe files 

> > , it giving us

> > a "save as"  window , and then the user can chose where to save it !

> > 

> > Thank You !

> > Mouna Elias.

> > 

> > -----Original Message-----

> > From: Gregory_Griffiths@c... 

> > [mailto:Gregory_Griffiths@c...]

> > Sent: Tuesday, January 23, 2001 3:40 PM

> > To: ASP Web HowTo

> > Subject: [asp_web_howto] RE: how to download an existing file 

> > from server

> > 

> > 

> > Just add the link as normal, <a 

> href="myfile.xls">MyFile.xls</a> and 

> > hten depending on the browsers configuration and the client 

> PC's MIME 

> > types (niether of which you can change) it will handle the 

> file. You 

> > may want to consider how it would work in an non-MS/non-Excel 

> > environment such as Linux, Unix, Mac or a home user without Excel.

> > 

> > > -----Original Message-----

> > > From: monae@i... [mailto:monae@i...]

> > > Sent: 23 January 2001 05:58

> > > To: asp_web_howto@p...

> > > Subject: [asp_web_howto] how to download an existing file 

> > from server

> > > 

> > > 

> > > hi ,

> > > I created an *.xls file at the server , and I want the client 

> > > to be able

> > > to dawnload it if he wants (by clicking a button) , so how 

> > > can I do that

> > > in ASP code ?

> > 

  Return to Index