473,564 Members | 2,758 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Response.redire ct - The page has moved to here

Hi there!

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

I've used response.redire ct 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 2251
On Oct 16, 8:09 am, Lupus <mathieu.m...@g mail.comwrote:
Hi there!

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

I've used response.redire ct 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.redire ct 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.redire ct 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.redire ct 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.com wrote:
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.redire ct 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
4307
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 serves two purposes, 1. it contains a tab strip with response.redirects to navigate to the other pages; 2. I authenticate the user by check to see if...
0
1337
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 smartnavigation set true the page does not redirect and it shows me a blank page. Does anybody know how can I make a response.redirect with...
4
6886
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 = "http://localhost/webapplication1/webform1.aspx" Response.ClearHeaders() Response.ClearContent() Dim ReportWebRequest As...
1
1505
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 happening when i redirect - i need to somehow end the response but not with Response.End because it doesn't allow it to get to the Redirect statement...
1
1784
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 special: Response.Redirect("indexThankYou.htm");
2
3589
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 status in the response; but I couldn't get it to work. I created a project from scratch with just 2 pages and it keeps giving me 302 Object Found. ...
4
5555
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 stumped at the moment. I'm using a Response.Redirect to send the user to a new page with posted values. Was working beautifully... then I moved on...
9
2880
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") Unfortunately I do not seem to be able to redirect to a custom protocol url, any ideas why? Basically I'm trying to implement this functionality so no...
4
3441
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 system and a test is defined. The problem I am having is when users need to view these documents. Currently, they select which item they wish to...
0
7583
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7888
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7642
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.