p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_codeclinic thread: Server compatibility


Message #1 by "Neal Lebar" <nlebar@i...> on Fri, 16 Feb 2001 02:09:55
But you can do what you wrote *without* Response.Buffer = True

The problem is not being caused by the problem below - it is being caused
because you are trying to redirect after writing HTML to the client, eg:

<html>
<%
If myRecordset.EOF = true then
  response.redirect"abc.asp"
Else
  response.redirect"def.asp"
End if
%>

In that case, you don't need the <html>, and thus you don't need
Response.Buffer = true

Cheers
ken

----- Original Message -----
From: <philip.moh@a...>
To: "Code Clinic" <proasp_codeclinic@p...>
Sent: Wednesday, February 21, 2001 1:24 PM
Subject: RE: Server compatibility


> It is? But once I place the <% Response.Buffer = True %> at the top of my
> .asp page, I will be able to do the following:
>
> if myRecordset.EOF = true then
>   response.redirect"abc.asp"
> else
>  response.redirect"def.asp"
> end if
>
> It works...
>
>
>
> > -----Original Message-----
> > From: Ken Schaefer [SMTP:ken@a...]
> > Sent: Wednesday, February 21, 2001 10:24 AM
> > To: Code Clinic
> > Subject: Re: Server compatibility
> >
> >
> > > have you tried to put in beginning of the page
> > > <% Response.Buffer = True %>
> > >  Generally this solve the these kind of problems..
> >
> > This does *not* solve the problem, it treats the symptom. The problem is
> > badly structured code, the symptom is the error message that you are
> > seeing.
> >
> > Cheers
> > Ken



  Return to Index