Redirect Page

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

Hello,

I am using the following code line in my VB code to redirect to another
page inside my web site:
Response.Redirect("Message.aspx")

I am getting the error:

The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for
this address in a way that will never complete.

Any idea of what is going on?

In IE the page doesn't load.

Thanks,
Miguel
 
But why?

The file Message.aspx exists and it is working fine. It's not calling
any page. Just displaying a message.

I am using it in a Control.Init event:

Private Sub MyControl_Init(ByVal sender As Object, ByVal e As
EventArgs) Handles MyControl.Init

If MyControl.IsLicensed Then
Response.Redirect("Message.aspx")
End If

End Sub

Everything is working fine.

The only problem is I get the error I described when
MyControl.IsLicensed is false.

The page Message.aspx gives the error when is called.

Thanks,

Miguel
 
Does that Message.aspx contain that "MyControl"?
If MyControl.IsLicenced is false, can you call Message.aspx directly?

Hans Kesting
 
Download fiddler (Free) from fiddlertool.com and you'll see it sending back
302 (redirects) over and over again. I'm like 99.99998% sure that's the
problem. it's easy to debug, ...step through the code and watch it go
insane...

Karl
 
Back
Top