In file FIRST.ASP, I've got
<%
Response.Redire ct "SECOND.ASP "
%>
The redirect is happening, and I'm seeing the content from SECOND.ASP in the browser,
but the URL in the browser is still saying FIRST.ASP.
Does anyone know why this is happening and how I can insure the browser displays
SECOND.ASP? I'm using IE6.
THANKS,
-Bill. 10 13435
Bill wrote: In file FIRST.ASP, I've got <% Response.Redire ct "SECOND.ASP " %>
The redirect is happening, and I'm seeing the content from SECOND.ASP in the browser, but the URL in the browser is still saying FIRST.ASP.
Does anyone know why this is happening
That's just the way it works. A Redirect does not change the name of the
page that was requested ...
and how I can insure the browser displays SECOND.ASP? .
The browser has to request SECOND.ASP in order for that to appear in the
address bar. Server-side code cannot alter this.
What you can do is redirect to an intermediate page that uses client-side
code to navigate to SECOND.ASP
I'm using IE6
Irrelevant.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
"Bob Barrows [MVP]" wrote... Bill wrote: In file FIRST.ASP, I've got <% Response.Redire ct "SECOND.ASP " %>
The redirect is happening, and I'm seeing the content from SECOND.ASP in the browser, but the URL in the browser is still saying FIRST.ASP.
Does anyone know why this is happening That's just the way it works. A Redirect does not change the name of the page that was requested ...
Are confusing this with Server.Transfer ? That does not change the URL of the browser
because it redirects the SERVER to the new page.
Response.Redire ct, according to Microsoft, "redirects a CLIENT to a new URL". In the
past, it has always changed the URL for me. This is why Response.Redire ct can be used to
redirect to another server (Server.Transfe r cannot). http://msdn.microsoft.com/library/en...irecttopic.asp http://msdn.microsoft.com/library/en...7f38f37ab3.asp and how I can insure the browser displays SECOND.ASP? .
The browser has to request SECOND.ASP in order for that to appear in the address bar. Server-side code cannot alter this.
Response.Redire ct does this: http://msdn.microsoft.com/library/en...7f38f37ab3.asp
"this method does send other HTTP headers set by this page indicated by the original URL
to the client."
That's why Response.Redire ct is less efficient than Server.Transfer , because ST doesn't
communicate with the client, RD does.
What you can do is redirect to an intermediate page that uses client-side code to navigate to SECOND.ASP
I'm using IE6 Irrelevant.
The browser URL changes in Firefox.
Bill wrote on 21 mrt 2006 in microsoft.publi c.inetserver.as p.general: That's just the way it works. A Redirect does not change the name of the page that was requested ... Are confusing this with Server.Transfer ? That does not change the URL of the browser because it redirects the SERVER to the new page.
Response.Redire ct, according to Microsoft, "redirects a CLIENT to a new URL".
You are so right.
That's why Response.Redire ct is less efficient than Server.Transfer , because ST doesn't communicate with the client, RD does.
The nice thing about Server.Transfer is,
that you don't need no client anymore.
[For the second file's excution, that is]
Clients are a nuisance, both they and their diverse browsers heavily
interfere with perfect web scripting.
I can imagine a NG especially for unserved serverside scripting.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Bill wrote: Are confusing this with Server.Transfer ? That does not change the URL of the browser because it redirects the SERVER to the new page.
Yes I goofed.
I just ran some tests on my server, and the url changes as it is supposed to
(using IE6)
There aren't any frames involved are there?
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
I've seen in the past that if I'm on page1.asp, and I had a server-side
error before the redirect, corrected the error, refreshed, IE would display
the old URL even after the redirect. After closing the browser and going
through the page again, it would redirect and show in the address bar as
expected.
Ray at home
"Bill" <Bi*****@yahoo. com> wrote in message
news:uC******** ******@TK2MSFTN GP10.phx.gbl... In file FIRST.ASP, I've got <% Response.Redire ct "SECOND.ASP " %>
The redirect is happening, and I'm seeing the content from SECOND.ASP in the browser, but the URL in the browser is still saying FIRST.ASP.
Does anyone know why this is happening and how I can insure the browser displays SECOND.ASP? I'm using IE6.
THANKS,
-Bill.
Ray Costanzo [MVP] wrote on 22 mrt 2006 in
microsoft.publi c.inetserver.as p.general: I've seen in the past that if I'm on page1.asp, and I had a server-side error before the redirect, corrected the error, refreshed, IE would display the old URL even after the redirect. After closing the browser and going through the page again, it would redirect and show in the address bar as expected.
I think MS got that fixed, as I didn't see that the last months.
[or, doubtfull, my programming has become better]
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
"Bob Barrows [MVP]" wrote.. Bill wrote: Are confusing this with Server.Transfer ? That does not change the URL of the browser because it redirects the SERVER to the new page. Yes I goofed.
I do that a lot... I just ran some tests on my server, and the url changes as it is supposed to (using IE6) There aren't any frames involved are there?
No, no frames. It's part of a security check application - first.asp does some security
checking, then sets a few session variables & then does a Response.Redire ct to
second.asp. I'd really like the file name of first.asp to be secret - they can't do any
real damage to my security (I don't thnk!), but every time first.asp is refreshed, it
logs data info to a text file.
While I can certainly eliminate the duplicate logging, that's just fixing the symptom,
and not the cause.
Bill.
Evertjan. wrote: I think MS got that fixed, as I didn't see that the last months. [or, doubtfull, my programming has become better]
I still see it periodically in IE. I have never tried to figure out the
reason. Probably because I just don't care what a URL looks like as long as
it functions.
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
well, its a cobb but here is an idea.
run your 1st asp page, redirect them to another page that does a quick
meta-redirect to the 2nd asp page
pretty sure that will solve the problem of them not seing the 1st page url
in the browser when it is all said and done...
"Dave Anderson" <GT**********@s pammotel.com> wrote in message
news:u7******** ******@TK2MSFTN GP14.phx.gbl... Evertjan. wrote: I think MS got that fixed, as I didn't see that the last months. [or, doubtfull, my programming has become better]
I still see it periodically in IE. I have never tried to figure out the reason. Probably because I just don't care what a URL looks like as long as it functions. -- Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use of this email address implies consent to these terms. Please do not contact me directly or ask me to contact you directly for assistance. If your question is worth asking, it's worth posting. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Paul |
last post by:
I'm not getting the results I want when I use
Response.Redirct in a ASP page.
I enter this line of code in a asp page from domain1.com.
Response.Redirect "http://www.domain2.com/VDIR2/table.asp"
& "?PubID=" & PubID & "&PubName=" & PubName
The query string is data to open a DB. the page displays
|
by: Justin |
last post by:
Hi,
Im confused here over the usage of Response.Redirect and
Server.Transfer. I used frameset for my work, what are the
proper usages of the two methods that seems working
similar..
The problem i faced while using Response.Redirect is that
the page that is directed to, does not looks as
desired..the textboxes are not visible anymore and so as
|
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: venner |
last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET
2.0. The website makes use of a central authentication service (CAS)
provided at the university I work for. Each page checks a session
variable, and if it is not present, does a Response.Redirect to a
webpage for the CAS passing a url parameter for the url to post back
to. The CAS provides a page for the user to log into, validates the
username and password, and then...
|
by: mike.biang |
last post by:
I have an ASP page that is using an XMLHTTP object to request various
pages from my server. I keep a single session throughout the XMLHTTP
requests by bassing the ASPSESSIONID cookie through the XMLHTTP object.
However, when the page requested through the XML object makes a
<%Response.Redirect()%>
call, a new session is created each time.
Is this a flaw in the XMLHTTP Object? How can I force the session to
remain the same after a...
| |
by: =?Utf-8?B?d2ViZ3V5QGNvbW11bml0eS5ub3NwYW0=?= |
last post by:
We have been running into some problems where using Response.Redirect causes
the page to hang and it never actually redirects.
Here's the scenario:
User opens the page, selects an item from the drop down list and then clicks
one of a couple of buttons to send them off to another page. We do a little
bit of validation in the Event Handler and then do a Response.Redirect off to
the next page. Then the page just sits there and never...
|
by: Mufasa |
last post by:
What are the ramifications of changing from Server.Transfer to
Response.Redirect? I need to keep track of the URLs being used.
Can you do relative addresses through redirect?
TIA - Jeff.
|
by: sjledet |
last post by:
I'm trying to figure out what I have wrong in the following code. It's
located at http://www.ledet.com/locations/location.aspx
If I call this page with http://www.ledet.com/locations/location.aspx?id=0
it works fine and redirects to the default page for that directory.
But if I call it with http://www.ledet.com/locations/location.aspx?id=188
it doesn't redirect
Does anyone have any suggestions?
|
by: RN1 |
last post by:
When a server encounters the line
Response.Redirect("abcd.asp")
in a ASP script, the server tells the browser that it has to be
redirected to another page (which is abcd.asp, in this case). The
browser then makes a new request to the server to redirect itself to
abcd.asp after which the user gets redirected to abcd.asp.
But in case of Server.Execute (or Server.Transfer), when the server
|
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: 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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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...
| |