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 ? 5 2266
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.
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
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 ?
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 ?
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... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 a cookie
exists, if it doesn't I redirect to a login screen.
|
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
smartnavigation = true?
I have this code:
Response.BufferOutput = True
|
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 System.Net.HttpWebRequest =
CType(System.Net.WebRequest.Create(strURL), System.net.HttpWebRequest)
|
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 and if i use something like
Response.Close or Response.Clear it outputs "Object moved to here" text...
|
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");
| |
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.
Upon button click on one page (POST), I redirect to another; here is the
|
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 to encrypting the values. Now everytime I try to do the Response.Redirect I just get "The Page...
|
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 coding need take place to get the redirection from the consuming web
|
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 complete training on, and by clicking the start test button, it pulls the location of this document...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |