response.redirect target

Results 1 to 2 of 2

Thread: response.redirect target

  1. #1
    Join Date
    Dec 1969

    Default response.redirect target

    Hello,<BR><BR>Is it possible to specify a target frame to response.redirect to?? If so how can you do this and if not what other ways are there??<BR><BR>Many thanks people!!<BR><BR>Russ

  2. #2
    Join Date
    Dec 1969

    Default RE: response.redirect target

    One of the way I use to get around this is JavaScript. Rather then Response.Redirect us simply write out a line of Javascript instead which once loading into the browser will change or reload the location of one of your frames. You have to make sure your target frame is named though in your frameset.<BR><BR>example (this is off the top of my head though so no promises!):<BR><BR>&#060;script language="Javascript"&#062;<BR>self.parent.&#060;N ame of Frame&#062;.location.href = "myfile.htm"<BR>&#060;/script&#062;<BR><BR>Also if your using a form to send data to the asp page that you want to do the redirecting you can have a target="FrameName" in your form tag. If the asp page has multiple different targets for its redirect then you could set the form to target a hiden frame (ie a frame with width and height set to 0 in the frameset). That way the page will run out of sight, write out your Javascript and that in turn will refresh the correct frame!!<BR><BR>Phew what a long one!<BR><BR>Pete

Posting Permissions

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