Me.Response.Redirect loads a white screen

Hi everyone,

I am unsure why, but whenever i call Me.Response.Redirect(MyURL) it opens a white page, If i copy the url from MyURL and paste it manually into a browser it works perfectly.

There is definitely nothing wrong with the MyURL so i am absolutely baffled as to why this is not working.

Thanks,

Xavier.
LVL 1
locdangAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

cmajkrzakCommented:
Hi Iocdang,

Which version of ASP.Net are you using?

Testing with ASP.NET 2 with Visual Studio 2005
Response.ReDirect("http://www.google.com")
Should work without issue.  Also in your debugging are you using the built in web server within visual studio (assuming your using VS) or IIS/Mono?

I've attached a code snip of what I just tested.

Partial Class _Default
    Inherits System.Web.UI.Page
 
    Protected Sub form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles form1.Load
        Response.Redirect("http://www.google.com")
    End Sub
End Class

Open in new window

0
locdangAuthor Commented:
This project has to run under ASP Net 1.1.4322 and is working fine on another server. And the server it is running on is a clone of the current one. (have to love virtual environments)


0
locdangAuthor Commented:
The issue was smart redirection, it was turned on in the page HTML. All is ok now.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.