Results 1 to 2 of 2

Thread: response.redirect

  1. #1
    Join Date
    Dec 1969

    Default response.redirect

    I am trying to redirect from a pop up window to a parent window then after redirecting the popup window close.<BR><BR>below is part of the code:<BR><BR>if CStr(Request.QueryString("accessdenied")) &#060;&#062; "" And false Then<BR> MM_redirectLoginSuccess = Request.QueryString("accessdenied")<BR> End If<BR> MM_rsUser.Close<BR> Response.Redirect(MM_redirectLoginSuccess)<BR> End If<BR> MM_rsUser.Close<BR> Response.Redirect(MM_redirectLoginFailed)<BR> End If

  2. #2
    Join Date
    Dec 1969

    Default RE: response.redirect

    Your trying to perform an internet explorer client action with asp.. Asp is executed on the server not interent explorer.. its parsed before html. What you could do is try to close the window with client-side javascript...<BR><BR>if CStr(Request.QueryString("accessdenied")) &#060;&#062; "" And false Then<BR>MM_redirectLoginSuccess = Request.QueryString("accessdenied")<BR>End If<BR><BR>&#039;MM_rsUser.Close instead do this<BR>response.write "&#060;script&#062;window.close&#060;/script&#062;" &#039;&#039;write client side javascript to the browser<BR><BR><BR>personally I hate trying to control the browser via javascript. What if javascript is disabled? Then your window wont be closed and you have another programming step. Anyways good luck.

Posting Permissions

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