Redirect Page

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
 
S

shapper

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
 
H

Hans Kesting

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

Hans Kesting
 
K

Karl Seguin [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top