Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ask a password from a ASP page...
Message
Information générale
Forum:
Internet
Catégorie:
Active Server Page
Divers
Thread ID:
00322010
Message ID:
00323014
Vues:
27
>>>The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.

>You are totally right. :) Why is it like that?
>Is this like that because we call the .asp from a button action?
>If you what a static .ASP page. Can we have the HTML tag in it?
>

To speed things up, the Web server send the response to the client right away even if your page did not finish it's process.
So if your page starts outputing HTML and you redirect, you'll have that error.

To avoid this:
A-Don't place any, I mean any HTML in your ASP page.
B-Place this code: "Response.Buffer = True" as the 2nd line on top of your page after you set the language. Then you'll be able to output HTML and redirect I you want.
Guy Barrette, MCSD
============
Blog http://weblogs.asp.net/guybarrette
Microsoft Regional Director, Montreal, Canada www.microsoft.com/rd
MVP, ASP.NET http://mvp.support.microsoft.com/
President, Montreal Visual Studio User Group www.guvsm.net
INETA Regional Rep for Quebec www.ineta.org
UniversalThread Magazine Columnist (.NET Books Review Column) www.utmag.com
Tech Chair French Track, DevTeach 2004 & 2005 www.devteach.com
Business Architect, Microsoft Team - Nurun Inc www.nurun.com
XBox Live Gamer Tag: Slomo QC CA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform