Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: downloading


Message #1 by nusrat sarwar <nusratsarwar@y...> on Sun, 21 Apr 2002 12:38:22 -0700 (PDT)
hi
I want to give download option for a word document
can anyone help me with the code?
thanx
regards
nusrat

__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/
Message #2 by Greg Griffiths <greg.griffiths@g...> on Sun, 21 Apr 2002 20:52:16 +0100
just link to it <a href="myWord.doc">Download myWord.doc</a>


At 12:38 21/04/02 -0700, you wrote:
>hi
>I want to give download option for a word document
>can anyone help me with the code?
>thanx
>regards
>nusrat
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Games - play chess, backgammon, pool and more
>http://games.yahoo.com/
>
>
>---
>
>Improve your web design skills with these new books from Glasshaus.
>
>Usable Web Menus
>http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
>r-20
>Constructing Accessible Web Sites
>http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
>r-20
>Practical JavaScript for the Usable Web
>http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
>r-20


Message #3 by "Debreceni, David" <david_debreceni@r...> on Mon, 22 Apr 2002 09:15:24 -0400
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C1E9FF.C3021370
Content-Type: text/plain;
	charset="iso-8859-1"

I am assuming the problem you are having is that when someone clicks the
link it opens the doc in the browser which you don't want.  If that is the
case the way we do it here, and there are plenty of other ways, is to make a
virtual directory in IIS for downloadable files.  Put any of the files you
want to download in there.  Open the properties of the virtual directory and
go to HTTP headers.  Add a custom header custom header name:
Content-Disposition  Custom Header value: Attachment   This should force
anything in this directory to be downloaded when someone clicks the link.
Hope that helps.

David Debreceni
Senior Visual Basic/ASP Developer 
xxx-xxx-xxxx  x 1086


-----Original Message-----
From: nusrat sarwar [mailto:nusratsarwar@y...]
Sent: Sunday, April 21, 2002 3:38 PM
To: ASP Web HowTo
Subject: [asp_web_howto] downloading


hi
I want to give download option for a word document
can anyone help me with the code?
thanx
regards
nusrat

__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/


---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20

Message #4 by nusrat sarwar <nusratsarwar@y...> on Mon, 22 Apr 2002 08:48:39 -0700 (PDT)
hi Greg
many thanx
take care
regards
nusrat


--- Greg Griffiths <greg.griffiths@g...>
wrote:
> just link to it <a href="myWord.doc">Download
> myWord.doc</a>
> 
> 
> At 12:38 21/04/02 -0700, you wrote:
> >hi
> >I want to give download option for a word document
> >can anyone help me with the code?
> >thanx
> >regards
> >nusrat
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Yahoo! Games - play chess, backgammon, pool and
> more
> >http://games.yahoo.com/
> >
> >
> >---
> >
> >Improve your web design skills with these new books
> from Glasshaus.
> >
> >Usable Web Menus
>
>http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> >r-20
> >Constructing Accessible Web Sites
>
>http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> >r-20
> >Practical JavaScript for the Usable Web
>
>http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> >r-20
> 
> 
> 
> 
> ---
> 
> Improve your web design skills with these new books
> from Glasshaus.
> 
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20


__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/
Message #5 by nusrat sarwar <nusratsarwar@y...> on Mon, 22 Apr 2002 11:37:40 -0700 (PDT)
many thanx David
take care
regards
nusrat
--- "Debreceni, David" <david_debreceni@r...>
wrote:
> I am assuming the problem you are having is that
> when someone clicks the
> link it opens the doc in the browser which you don't
> want.  If that is the
> case the way we do it here, and there are plenty of
> other ways, is to make a
> virtual directory in IIS for downloadable files. 
> Put any of the files you
> want to download in there.  Open the properties of
> the virtual directory and
> go to HTTP headers.  Add a custom header custom
> header name:
> Content-Disposition  Custom Header value: Attachment
>   This should force
> anything in this directory to be downloaded when
> someone clicks the link.
> Hope that helps.
> 
> David Debreceni
> Senior Visual Basic/ASP Developer 
> xxx-xxx-xxxx  x 1086
> 
> 
> -----Original Message-----
> From: nusrat sarwar [mailto:nusratsarwar@y...]
> Sent: Sunday, April 21, 2002 3:38 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] downloading
> 
> 
> hi
> I want to give download option for a word document
> can anyone help me with the code?
> thanx
> regards
> nusrat
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Games - play chess, backgammon, pool and more
> http://games.yahoo.com/
> 
> 
> ---
> 
> Improve your web design skills with these new books
> from Glasshaus.
> 
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20
> 
> 
> 
> ---
> 
> Improve your web design skills with these new books
> from Glasshaus.
> 
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

  Return to Index