Chris Moore
|
Posted: 07/24/2003, 12:54 PM |
|
Why isn't the user presented with a Save As dialog box when I issue a
REDIRECT = "http://68.88.85.107/txrealestatedatabank/Labels.tps"
???
If I paste the exact same information in my browser address window, I get
the Save As window like I want. I need to be able to 'force' this to happen
without the user having to click on a link or anything. When a certain page
opens, it should automaticly force this download and their browser should
open the Save As dialog.
Thanks
Chris
|
|
|
DonB
|
Posted: 07/25/2003, 2:53 PM |
|
This has to be an issue with the ContentType not being what you expect (or
need). I've used
Response.ContentType = "text/xml"
at the top of my app's "code" page to override the default of "text/html"
when I was dumping XML to the browser - however the "Option Explict" in
Common.asp must be commented out. The ContentType has to be the first thing
you do, and the way the Common files are included, the Option statement
screws this up. So I just took it out.
I guess what I am saying is that despite being a "tps" file, it probably is
being given to the browser as if it was "htm" and the browser intervenes
with a "whatchu talkin 'bout?" handler when it sees this as a conflict.
DonB
http://www.gotodon.com/ccbth
"Chris Moore" <chris@dblayout.com> wrote in message
news:Xns93C297FE52B60cabubba@66.180.229.147...
> Why isn't the user presented with a Save As dialog box when I issue a
>
> REDIRECT = "http://68.88.85.107/txrealestatedatabank/Labels.tps"
>
> ???
>
> If I paste the exact same information in my browser address window, I get
> the Save As window like I want. I need to be able to 'force' this to
happen
> without the user having to click on a link or anything. When a certain
page
> opens, it should automaticly force this download and their browser should
> open the Save As dialog.
>
> Thanks
>
> Chris
|
|
|
DonB
|
Posted: 07/25/2003, 2:56 PM |
|
Or maybe:
Response.AddHeader "Content-Disposition","attachment;filename=filename.zip"
DonB
"DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote in message
news:bfs8t9$8vp$1@news.codecharge.com...
> This has to be an issue with the ContentType not being what you expect (or
> need). I've used
>
> Response.ContentType = "text/xml"
>
> at the top of my app's "code" page to override the default of "text/html"
> when I was dumping XML to the browser - however the "Option Explict" in
> Common.asp must be commented out. The ContentType has to be the first
thing
> you do, and the way the Common files are included, the Option statement
> screws this up. So I just took it out.
>
> I guess what I am saying is that despite being a "tps" file, it probably
is
> being given to the browser as if it was "htm" and the browser intervenes
> with a "whatchu talkin 'bout?" handler when it sees this as a conflict.
>
> DonB
>
> http://www.gotodon.com/ccbth
>
>
> "Chris Moore" <chris@dblayout.com> wrote in message
>news:Xns93C297FE52B60cabubba@66.180.229.147...
> > Why isn't the user presented with a Save As dialog box when I issue a
> >
> > REDIRECT = "http://68.88.85.107/txrealestatedatabank/Labels.tps"
> >
> > ???
> >
> > If I paste the exact same information in my browser address window, I
get
> > the Save As window like I want. I need to be able to 'force' this to
> happen
> > without the user having to click on a link or anything. When a certain
> page
> > opens, it should automaticly force this download and their browser
should
> > open the Save As dialog.
> >
> > Thanks
> >
> > Chris
>
>
|
|
|
DonB
|
Posted: 07/25/2003, 2:57 PM |
|
I meant:
Response.AddHeader "Content-Disposition","attachment;filename=labels.tps"
"DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote in message
news:bfs927$96r$1@news.codecharge.com...
> Or maybe:
>
> Response.AddHeader
"Content-Disposition","attachment;filename=filename.zip"
>
> DonB
>
> "DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote in message
>news:bfs8t9$8vp$1@news.codecharge.com...
> > This has to be an issue with the ContentType not being what you expect
(or
> > need). I've used
> >
> > Response.ContentType = "text/xml"
> >
> > at the top of my app's "code" page to override the default of
"text/html"
> > when I was dumping XML to the browser - however the "Option Explict" in
> > Common.asp must be commented out. The ContentType has to be the first
> thing
> > you do, and the way the Common files are included, the Option statement
> > screws this up. So I just took it out.
> >
> > I guess what I am saying is that despite being a "tps" file, it probably
> is
> > being given to the browser as if it was "htm" and the browser intervenes
> > with a "whatchu talkin 'bout?" handler when it sees this as a conflict.
> >
> > DonB
> >
> > http://www.gotodon.com/ccbth
> >
> >
> > "Chris Moore" <chris@dblayout.com> wrote in message
> >news:Xns93C297FE52B60cabubba@66.180.229.147...
> > > Why isn't the user presented with a Save As dialog box when I issue a
> > >
> > > REDIRECT = "http://68.88.85.107/txrealestatedatabank/Labels.tps"
> > >
> > > ???
> > >
> > > If I paste the exact same information in my browser address window, I
> get
> > > the Save As window like I want. I need to be able to 'force' this to
> > happen
> > > without the user having to click on a link or anything. When a certain
> > page
> > > opens, it should automaticly force this download and their browser
> should
> > > open the Save As dialog.
> > >
> > > Thanks
> > >
> > > Chris
> >
> >
>
>
|
|
|
Chris Moore
|
Posted: 07/27/2003, 4:47 PM |
|
Thanks Don, I think thats it.
Chris
"DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote in
news:bfs94d$98b$1@news.codecharge.com:
> I meant:
>
> Response.AddHeader
> "Content-Disposition","attachment;filename=labels.tps"
>
>
> "DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote in message
>news:bfs927$96r$1@news.codecharge.com...
>> Or maybe:
>>
>> Response.AddHeader
> "Content-Disposition","attachment;filename=filename.zip"
>>
>> DonB
>>
>> "DonB" <7432D63DBB01D03A196B1EDD80E8@comcast.net> wrote in message
>>news:bfs8t9$8vp$1@news.codecharge.com...
>> > This has to be an issue with the ContentType not being what you
>> > expect
> (or
>> > need). I've used
>> >
>> > Response.ContentType = "text/xml"
>> >
>> > at the top of my app's "code" page to override the default of
> "text/html"
>> > when I was dumping XML to the browser - however the "Option
>> > Explict" in Common.asp must be commented out. The ContentType has
>> > to be the first
>> thing
>> > you do, and the way the Common files are included, the Option
>> > statement screws this up. So I just took it out.
>> >
>> > I guess what I am saying is that despite being a "tps" file, it
>> > probably
>> is
>> > being given to the browser as if it was "htm" and the browser
>> > intervenes with a "whatchu talkin 'bout?" handler when it sees this
>> > as a conflict.
>> >
>> > DonB
>> >
>> > http://www.gotodon.com/ccbth
>> >
>> >
>> > "Chris Moore" <chris@dblayout.com> wrote in message
>> >news:Xns93C297FE52B60cabubba@66.180.229.147...
>> > > Why isn't the user presented with a Save As dialog box when I
>> > > issue a
>> > >
>> > > REDIRECT = "http://68.88.85.107/txrealestatedatabank/Labels.tps"
>> > >
>> > > ???
>> > >
>> > > If I paste the exact same information in my browser address
>> > > window, I
>> get
>> > > the Save As window like I want. I need to be able to 'force' this
>> > > to
>> > happen
>> > > without the user having to click on a link or anything. When a
>> > > certain
>> > page
>> > > opens, it should automaticly force this download and their
>> > > browser
>> should
>> > > open the Save As dialog.
>> > >
>> > > Thanks
>> > >
>> > > Chris
>> >
>> >
>>
>>
>
>
|
|
|
|