Redirect Problem

Discussion in 'ASP.NET 2.0' started by gumanicomau, Aug 25, 2006.

  1. After reviewing it a little more, I noticed it works fine in IE but not in firefox or netscape based browsers, here is an example of the problem:

    www.gumani.com.au/test.aspx

    the code is:

     
  2. Your test worked on both my IE and my Firefox.

    Though I noticed you are redirecting to the same page. Some browsers have strange behavior when you redirect to yourself (to prevent infinite loops).

    If you are going to redirect to the same page, I suggest adding some radom garbage to the querystring like...

    test.aspx?r=098274837829

    this will make the urls different and the browsers wont freak out.


    Joel Thoms
    DiscountASP.NET
    http://www.DiscountASP.NET
     
  3. Hey guys,

    I'm having trouble with the redirect function bringing up a 'Object has moved to here' page. I'm using basic Response.Redirect('myPage.aspx');

    This problem also seem to stop a lot of the functionality of the website from being processed.

    Any one seen this problem or have any ideas?

    Cheers
    --Timothy (gumani)
     

Share This Page