Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Thank you! Re: Response object error 'ASP 0156 : 80004005'


Message #1 by DEREK TRAN <derekhtran@y...> on Wed, 7 Nov 2001 16:12:23 -0800 (PST)
Hi all,

I got it.

thanks to everyone. I really appreciate for your help.

Derek

--- Pat Waddington <paw@s...> wrote:

> This is not strictly true.

> 

> It is no great shakes to have buffering turned on

> (it's the default state in

> ASP 3.0 anyway, whereas it's off in earlier

> versions). You just have to have

> <%Response.Buffer = true%> before the opening <html>

> tag. Thereafter you can

> use Response.Redirect wherever you like. Even if you

> don't use

> Response.Flush and Response.Clear to output at any

> point, the page will

> still display when it has finished loading. I find

> it a useful technique for

> pages with dynamically-generated and complex routing

> requirements, and for

> ensuring that users see something if there is a lot

> of script before the

> <body> tag (e.g. database-based validation that

> requires the user to be

> rerouted back a page without them being aware that

> the page actually

> changed).

> 

> Handling your page output is not difficult, it just

> takes a bit of thinking

> about and is certainly not bad code.

> 

> HTH

> Pat

> ----- Original Message -----

> From: "phil griffiths" <pgtips@m...>

> To: "ASP Web HowTo" <asp_web_howto@p...>

> Sent: Wednesday, November 07, 2001 12:02 PM

> Subject: [asp_web_howto] Re: Response object error

> 'ASP 0156 : 80004005'

> 

> 

> > You need to move the ASP code which does the

> redirect to before the

> > opening <html> tag.  This is because a redirect is

> done by sending a

> > redirect HTTP header to the client, but if you

> have already sent HTML to

> > the client (which you have because you've put the

> ASP after the HTML) its

> > not possible to go back and amend the header coz

> its already been sent.

> >

> > Another solution is to turn buffering on so

> nothing is sent to the client

> > until you tell it to. But I wouldn't recommend

> this approach, it just

> > encourages bad coding like yours, LOL

> > HTH

> > Phil

> > > Hi all,

> > >

> > > Could anyone tell me what does this mean? What

> does

> > > this mean?  How do I resolve it?

> > >

> > > Response object error 'ASP 0156 : 80004005'

> > >

> > > Header Error

> > >

> > > /ErgoApp/ErgoDev/Main_Login.asp, line 57

> > >

> > > The HTTP headers are already written to the

> client

> > > browser. Any HTTP header modifications must be

> made

> > > before writing page content.

> > >

> > > It's this line:

> > > response.redirect

> > > "http://ehs/ErgoApp/ErgoDev/Request_Login.asp"

> >



> paw@s...


> $subst('Email.Unsub')

> >

> >

> 

> 

> 

> 



> derekhtran@y...


> $subst('Email.Unsub')

> 





__________________________________________________

Do You Yahoo!?

Find a job, post your resume.

http://careers.yahoo.com


  Return to Index