473,378 Members | 1,426 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,378 software developers and data experts.

Postback causes 100=Continue, causes double download prompt?

Hi,

I have an ASP.Net web page that you can download a file. As
Fergunson's problem, it prompts twice dialog boxes only if I select
Open button. If I select Save button, it prompts once.

I'm using W2000KS & IE6 sp1 & VS.NET 2003.

If I change method="post" by method="get" form attribute, it works
fine.

If I reproduce the problem as Mike Moore, I have the same problem,
two dialog boxes.

is it possible to solve the problem with post?

Thank You
Javier Osa
--------------------
| >From: "msnews.microsoft.com" <Fe******@chaslevy.com>
| >Subject: Postback causes 100=Continue, causes double download
prompt?
| >Date: Wed, 2 Apr 2003 22:59:26 -0500
| >Lines: 41
| >X-Priority: 3
| >X-MSMail-Priority: Normal
| >X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| >Message-ID: <ug**************@TK2MSFTNGP11.phx.gbl>
| >Newsgroups: microsoft.public.dotnet.framework.aspnet
| >NNTP-Posting-Host: 209.107.94.2
| >Path:
cpmsftngxa08.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!TK2MSFTNGP11.
phx.gbl
| >Xref: cpmsftngxa08.phx.gbl
microsoft.public.dotnet.framework.aspnet:135661
| >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| >
| >I have an ASP.Net form running under W2K Server SP3. It either
shows a
| >regular page, or if selected will instead download an excel
document.
| >
| >It prompts twice. But only if I'm doing a postback. If I call the
same
| >code without a postback it does not.
| >
| >I looked at the network traffic with a sniffer, and the key
difference I see
| >is that the one with the postback is sending a response first with
| >status=100 (continue), and then with the document and status=OK.
| >
| >The continue is supposed to be essentially a "do nothing", but I
think
| >(emphasis on think) this is causing the double promtp for
save/open. Again,
| >same browser same code but without being in a postback state it
does not
| >prompt twice.
| >
| >Here's a bit of code from page_load that actually sends the
response:
| >
| >Response.Clear()
| >Response.ContentType = "application/vnd.ms-excel"
| >Response.AppendHeader("content-disposition", "attachment;
| >filename=YourOutput.xls")
| >Response.WriteFile(sTargetFile)
| >Response.End()
| >Response.Close()
| >
| >The sTargetFile is a real Excel file (xls). There is no difference
in the
| >code I wrote whether it's called with a postback or not (I'm sure
there is
| >differences under the covers).
| >
| >Note that both mechanisms work. The one that prompts twice is just
| >annoying. Both prompts are identical - same file name, application
type,
| >etc.
| >
| >I'm not sure which is the more relevant question - what causes the
| >100=continue? Or how can I prevent it from causing a double
prompt?
| >
| >Linwood
| >
| >PS. Internet Explorer 6 SP1.
| >
| >
| >
Nov 18 '05 #1
0 1528

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

Similar topics

2
by: Mak | last post by:
Hi Everybody, I try set the Expect: 100-continue in my request to server. The way I do it is by setting : <META http-equiv="Expect" content="100-continue"> in my html page. But, it does not...
2
by: Ronnie Scott | last post by:
I just came across a nice dropdown replacement that populates on-the-fly, and wondered if anyone knew how to do the sort of thing it does. As far as I knew, you couldn't do what it does. I...
0
by: volcovcommander | last post by:
I'm experiencing what looks like an http 1.1 100 continue issue with IE 6, IIS 6 and an ASP.NET app. The scenario is such: - I send POST request to page A which then should redirect to page B;...
2
by: Sidharth | last post by:
Hello, We are experiencing some issues with the aspnet_wp process on our live servers. The problems are intermittent and we cannot reproduce it on our dev and test servers. Currently around...
0
by: real_ashwin | last post by:
My team and i are working on a project which is almost completed its a Vb.net application which uses webservices to send and receive data from our main server. The ISA on our local area network'...
3
by: Christian Lutz | last post by:
Hy there I have a Web Services written in Java, running on Tomcat. The Client is written in C#. When i monitor the request/Response with TCPMon (included in Tomcat) i can observer the following...
1
by: Stefan Mueller | last post by:
Sometimes I see the following text on my PHP generated page HTTP/1.1 100 Continue What's that and how can I avoid that? Stefan
0
by: Noam_h | last post by:
Hi all. Calling this web service: POST /WebService2/Service1.asmx HTTP/1.1 Host: WKSI105080A22 Content-Type: text/xml; charset=utf-8 Content-Length: 396 SOAPAction:...
1
by: showson1 | last post by:
Hi all! I have some files that are basically a TIF with an ASCII header. I wrote an app that reads in the file, pulls some values from the header and writes out everything after the header as a...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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...

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.