Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Does a response.redirect process the rest of the page?

Reply
Thread Tools

Does a response.redirect process the rest of the page?

 
 
Seth
Guest
Posts: n/a
 
      06-26-2004
Pretty straight forward. Reason I'm asking is because I'm not sure if I
should explicitly close my recordset and database connections before each
redirect or get away with having a one time close at the bottom of my page.
Thanks for the help.


 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      06-26-2004
Seth wrote:
> Pretty straight forward. Reason I'm asking is because I'm not sure if
> I should explicitly close my recordset and database connections
> before each redirect or get away with having a one time close at the
> bottom of my page. Thanks for the help.


Redirect does what it says. Nothing else is processed. My practice is to
process database objects first, closing and destroying them when fineshed.
THEN make decisions as to whether to redirect or not.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      06-26-2004
Bob Barrows [MVP] wrote:
> Seth wrote:
>> Pretty straight forward. Reason I'm asking is because I'm not sure if
>> I should explicitly close my recordset and database connections
>> before each redirect or get away with having a one time close at the
>> bottom of my page. Thanks for the help.

>
> Redirect does what it says. Nothing else is processed. My practice is
> to process database objects first, closing and destroying them when
> fineshed. THEN make decisions as to whether to redirect or not.
>

Just to clarify, by "process", I mean:
Assign the data contained in the database objects to variables (including
using GetRows to assign the data to an array, or GetString to create a
string containing the data, if I need to process multiple records). After
this operation, there is no longer any need to keep the database objects
open, so at this point, I close and destroy them.

NOW I process the variables containing the data, writing them to response,
or making decisions as to whether or not to redirect, etc.

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


 
Reply With Quote
 
Seth
Guest
Posts: n/a
 
      06-26-2004
Thanks for the help. Seems like I've got quite a bit of change, I've assumed
that the rest of the page is processed.

"Bob Barrows [MVP]" <> wrote in message
news:...
> Bob Barrows [MVP] wrote:
> > Seth wrote:
> >> Pretty straight forward. Reason I'm asking is because I'm not sure if
> >> I should explicitly close my recordset and database connections
> >> before each redirect or get away with having a one time close at the
> >> bottom of my page. Thanks for the help.

> >
> > Redirect does what it says. Nothing else is processed. My practice is
> > to process database objects first, closing and destroying them when
> > fineshed. THEN make decisions as to whether to redirect or not.
> >

> Just to clarify, by "process", I mean:
> Assign the data contained in the database objects to variables (including
> using GetRows to assign the data to an array, or GetString to create a
> string containing the data, if I need to process multiple records). After
> this operation, there is no longer any need to keep the database objects
> open, so at this point, I close and destroy them.
>
> NOW I process the variables containing the data, writing them to response,
> or making decisions as to whether or not to redirect, etc.
>
> Bob Barrows
>
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"
>
>



 
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
Does ASP.NET treat <header> differently than the rest of the html? aleko ASP .Net 0 02-25-2005 09:35 PM
Process does not receive EOF when reading from Process.getOutputStream() Reid Madsen Java 8 05-16-2004 01:37 AM
Does the Microsoft Natural Keyboard Elite have a detachable palm rest? =?Utf-8?B?Y19sZXlkZW4=?= Microsoft Certification 2 02-04-2004 10:28 PM
Making an image download before the rest of the page does? Keiron Waites Javascript 2 08-07-2003 10:53 PM
process runs 1 clock cycle behind rest of code MNQ VHDL 3 07-07-2003 07:39 PM



Advertisments