Response.redirect not working

Results 1 to 2 of 2

Thread: Response.redirect not working

  1. #1
    Join Date
    Dec 1969

    Default Response.redirect not working

    I am using Connection.begintrans to start a lot of sql commands and I do a connection.committrans at the end if there are no errors during the database updates. If there are errors, I do a connection.rollbacktrans and then a response.redirect "name.asp" to the previous page to display a user friendly error message.<BR>When there are errors, the rollback works correctly but the previous page fails to display. Instead the user sees the system error message on a white page. <BR>Does the rollbacktrans prevent the response.redirect from working? Help.

  2. #2
    Join Date
    Dec 1969

    Default hmmm

    First off, make sure you have Response.Buffer = True at the top of your code.<BR><BR>Next, im not convinced that using any ASP object transactions doesnt mess the hell out of the response buffer.. remember, you cant redirect after you have communicated ANYTHING to the client.. well.. you can, but it gets more difficult to.

Posting Permissions

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