Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Postback causes 100=Continue, causes double download prompt?

Reply
Thread Tools

Postback causes 100=Continue, causes double download prompt?

 
 
Xavier Osa
Guest
Posts: n/a
 
      01-09-2004
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" <(E-Mail Removed)>
| >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: <ugc7xVZ#(E-Mail Removed)>
| >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.
| >
| >
| >
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
REPOST: Gridview ImageButton causes double postback Tim_Mac ASP .Net 10 05-10-2010 09:18 AM
DropDownList onfocus, causes double click Gorka ASP .Net 1 02-25-2009 07:11 PM
Debug causes double postback =?Utf-8?B?TWlrZSBMb2dhbg==?= ASP .Net 8 07-09-2007 08:41 AM
cannot convert parameter from 'double (double)' to 'double (__cdecl *)(double)' error Sydex C++ 12 02-17-2005 06:30 PM



Advertisments