Redirect to more than one URL

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Redirect to more than one URL

    Is it possible to do a Response.Redirect to multiple URLs?

    I have tried the following and it simply ignores the first redirect:

    Response.Redirect("test.aspx", false);
    Response.Redirect(p.UrlSend, true);


    I have designed the test.aspx page to simple write a cookie, just to
    see if it is working and it is not. I have also used to VS.Net
    Debugger and I can see that it is just skipping the first redirect.
    The second redirect is executing.

    Am I on the right track or is there another more appropriate method?
    Is this even possible?
    Mark Dengler Guest

  2. Similar Questions and Discussions

    1. redirect to ..
      hi, I have several page where you can edit the record When you modified the record you suppose to go where you came for example you can...
    2. redirect to guest if first redirect is doesnt work for a user
      Hi all, I was wondering if anyone could help me solve a problem Once a user hits a certain webpage ..I try to redirect them to another using...
    3. redirect?!?!?
      Hi i am wondering if anybody knows how to redirect a user to another page if a statement returns true? Here is the code, I am using PHP: // check...
    4. How to Redirect?
      I have a PHP script that waits for a file to appear, and then redirects to it. This works fine: <?php $filename = 'NewData.html'; while (!...
    5. Redirect to New Browser Window like Response.Redirect
      That worked just fine for me as long as you put that open statement on one line rather than 2. "michel" <michely3k@yahoo.com> wrote in...
  3. #2

    Default Re: Redirect to more than one URL

    What exactly are you looking to accomplish by asking the browser to
    redirect, then redirect again immediately ??

    Its only possible if you want to redirect to two windows, as the response
    has not ended from the response stream and the last thing your browser
    recieves is the second redirect, so it would probably act on that.

    --
    Regards

    John Timney (Microsoft ASP.NET MVP)
    ----------------------------------------------
    <shameless_author_plug>
    Professional .NET for Java Developers with C#
    ISBN:1-861007-91-4
    Professional Windows Forms
    ISBN: 1861005547
    Professional JSP 2nd Edition
    ISBN: 1861004958
    Professional JSP
    ISBN: 1861003625
    Beginning JSP Web Development
    ISBN: 1861002092
    </shameless_author_plug>
    ----------------------------------------------

    "Mark Dengler" <mdengler@go.com> wrote in message
    news:8cdf9ea9.0307301052.4de6c47a@posting.google.c om...
    > Is it possible to do a Response.Redirect to multiple URLs?
    >
    > I have tried the following and it simply ignores the first redirect:
    >
    > Response.Redirect("test.aspx", false);
    > Response.Redirect(p.UrlSend, true);
    >
    >
    > I have designed the test.aspx page to simple write a cookie, just to
    > see if it is working and it is not. I have also used to VS.Net
    > Debugger and I can see that it is just skipping the first redirect.
    > The second redirect is executing.
    >
    > Am I on the right track or is there another more appropriate method?
    > Is this even possible?

    John Timney \(Microsoft MVP\) Guest

  4. #3

    Default Re: Redirect to more than one URL

    You can't do it that way.
    Instead you might pop open a new window or two using some client side
    javascript.

    --
    I hope this helps,
    Steve C. Orr, MCSD
    [url]http://Steve.Orr.net[/url]


    "Mark Dengler" <mdengler@go.com> wrote in message
    news:8cdf9ea9.0307301052.4de6c47a@posting.google.c om...
    > Is it possible to do a Response.Redirect to multiple URLs?
    >
    > I have tried the following and it simply ignores the first redirect:
    >
    > Response.Redirect("test.aspx", false);
    > Response.Redirect(p.UrlSend, true);
    >
    >
    > I have designed the test.aspx page to simple write a cookie, just to
    > see if it is working and it is not. I have also used to VS.Net
    > Debugger and I can see that it is just skipping the first redirect.
    > The second redirect is executing.
    >
    > Am I on the right track or is there another more appropriate method?
    > Is this even possible?

    Steve C. Orr, MCSD Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139