473,394 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Response.redirect - The page has moved to here

Hi there!

I have some strange behavior in a ASP VB.NET application.

I've used response.redirect many times in different pages, and it
works like a charm. However in a new page I'm making, the browsers
behavior is different than in my previous pages.

Internet explorer just gives a blank screen. Firefox shows a text "The
page has moved to here"...

Anyone knows why the browsers may act this way instead of just
redirecting ?

Oct 16 '07 #1
5 2244
On Oct 16, 8:09 am, Lupus <mathieu.m...@gmail.comwrote:
Hi there!

I have some strange behavior in a ASP VB.NET application.

I've used response.redirect many times in different pages, and it
works like a charm. However in a new page I'm making, the browsers
behavior is different than in my previous pages.

Internet explorer just gives a blank screen. Firefox shows a text "The
page has moved to here"...

Anyone knows why the browsers may act this way instead of just
redirecting ?
Show friendly messages on in IE? Those messages are coming from the
web server not code.

Oct 16 '07 #2
Lupus wrote:
Hi there!

I have some strange behavior in a ASP VB.NET application.

I've used response.redirect many times in different pages, and it
works like a charm. However in a new page I'm making, the browsers
behavior is different than in my previous pages.

Internet explorer just gives a blank screen. Firefox shows a text "The
page has moved to here"...

Anyone knows why the browsers may act this way instead of just
redirecting ?
A redirect actually is a web page that contains that text. It also
contains a redirect value in the http header that tells the browser to
get another page instead of showing the redirection page.

If the value is not written to the header for some reason, you will se
the redirection page instead. This might also happen if you redirect to
the same page, which would otherwise send the browser into an eternal loop.

Where are you redirecting to, and what else do you do in the page before
calling the Redirect method?

--
Göran Andersson
_____
http://www.guffa.com
Oct 16 '07 #3
I believe it's happening if response from the server has more than just a
header with redirect information.
for example if you outputted the whole HTML page and then did a redirect.
Just make sure that you clear out the buffer

George.

>>
I have some strange behavior in a ASP VB.NET application.

I've used response.redirect many times in different pages, and it
works like a charm. However in a new page I'm making, the browsers
behavior is different than in my previous pages.

Internet explorer just gives a blank screen. Firefox shows a text "The
page has moved to here"...

Anyone knows why the browsers may act this way instead of just
redirecting ?

Oct 16 '07 #4
I believe it's happening if response from the server has more than just a
header with redirect information.
for example if you outputted the whole HTML page and then did a redirect.
Just make sure that you clear out the buffer

George.

>>
I have some strange behavior in a ASP VB.NET application.

I've used response.redirect many times in different pages, and it
works like a charm. However in a new page I'm making, the browsers
behavior is different than in my previous pages.

Internet explorer just gives a blank screen. Firefox shows a text "The
page has moved to here"...

Anyone knows why the browsers may act this way instead of just
redirecting ?

Oct 16 '07 #5
On 16 okt, 23:12, "George Ter-Saakov" <gt-...@cardone.comwrote:
I believe it's happening if response from the server has more than just a
header with redirect information.
for example if you outputted the whole HTML page and then did a redirect.
Just make sure that you clear out the buffer

George.
I have some strange behavior in a ASP VB.NET application.
I've used response.redirect many times in different pages, and it
works like a charm. However in a new page I'm making, the browsers
behavior is different than in my previous pages.
Internet explorer just gives a blank screen. Firefox shows a text "The
page has moved to here"...
Anyone knows why the browsers may act this way instead of just
redirecting ?
Thanks for all your responses!

This is what I'm actually doing. I'm working on a simple file
management system. The user is at default.aspx, showing a list of
files + a file upload form. The form action is process.aspx. The
programming in process.aspx saves the file (in my case in a SQL table)
and should redirect back to default.aspx.

I've done this kind of thing many times, so I'm a bit surprised (and
my boss too, due to the amount of hours I'm spending on this) why this
isn't working...

Oct 17 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Sam | last post by:
I have some issues with HTTP Headers and I was hoping for some pointers or references to good articles. Here is the problem. I have 6 .aspx pages, each page contains a common .ascx. This ascx...
0
by: Alfonso Alvarez | last post by:
Hi all: I have a problem with my webpage when I try to make a response.redirect and i have de smartnavigation option set true. If I put smartnavigation to false it works fine, but if I have...
4
by: Rothariger | last post by:
Hello, i have a problem, i must to make a response.redirect, with a fixed header (authentication header) but i dont know how to do it... i make this, but im stuck here... Dim strURL As String...
1
by: ocbka1 | last post by:
i'm using creating a webpage on the fly that i save as an xls file to be attached to an email and sent dynamically. i've got a custom response filter class to write it out. the problems start...
1
by: Craig Douglas | last post by:
Hi, I have a problem with getting a redirect to work on our server. It's worked fine on our server for months, but suddenly won't work and I can't figure out why. codewise, It's nothing...
2
by: Zester | last post by:
Hi, Sorry for this multi-posts; I don't know where the setting if it exists so I'm posting this to multiple groups. I was told that Response.Redirect would generate the http 302 Object Moved...
4
JKing
by: JKing | last post by:
Hey, I recently was added to a project that was well underway and I'm a little out of my element. I don't normally do web programming so I am having some trouble and I have to say I'm a little...
9
by: Nick | last post by:
Hi there, I would like to perform something like the following from my vb.net web service, being invoked via HTTP Post Call HttpContext.Current.Response.Redirect("myprotocol://myurl") ...
4
by: dasnowball | last post by:
Hi everyone, I'm developing an application using ASP.NET with VB, connected to a SQL Server, running on .NET 2 framework. I am developing a training system where documents are uploaded into the...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.