Response.flush and redirect

Results 1 to 2 of 2

Thread: Response.flush and redirect

  1. #1
    NA Guest

    Default Response.flush and redirect

    Does Response.flush stop the code execution at that point, i.e.<BR>&#060;%<BR>Response.Redirect("MessagePage. asp");<BR>Response.Flush();<BR>RecordSet.close();< BR>%&#062;<BR>Will the third line run or has the code already stopped and redirected to MessagePage?<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Response.flush and redirect

    As soon as you make the Reponse.Redirect Statement, Then NOTHING happens after that so it is POINTLESS to write something after that. like this for example :<BR><BR>&#060;%<BR>Response.Redirect("MessagePage .asp");<BR>Response.Write "We will not see this code ever because of the redirect and those 2 instruction right after me wont be executed either."<BR>Response.Flush();<BR>RecordSet.close() ;<BR>%&#062;<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts