473,405 Members | 2,421 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,405 software developers and data experts.

response.redirect & server.transfer very slow

On my WinXP machine, with both IE6 and Firefox 1.0, response.redirect
and server.transfer take about a minute. But on my WinNT machine with
IE5.5, it works instantly. What's going on?

Feb 10 '06 #1
16 7895


wizard04 wrote:
On my WinXP machine, with both IE6 and Firefox 1.0, response.redirect
and server.transfer take about a minute. But on my WinNT machine with
IE5.5, it works instantly. What's going on?

I don't know if it would be a factor, but Firefox is at version 1.5.0.1
MikeR
Feb 11 '06 #2
MikeR wrote on 11 feb 2006 in microsoft.public.inetserver.asp.general:
wizard04 wrote:
On my WinXP machine, with both IE6 and Firefox 1.0, response.redirect
and server.transfer take about a minute. But on my WinNT machine with
IE5.5, it works instantly. What's going on?

I don't know if it would be a factor, but Firefox is at version 1.5.0.1
MikeR


server.transfer is a serverside action, this cannot introduce any
clientside browser depending problem.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 11 '06 #3

"wizard04" <wi**********@hotmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
On my WinXP machine, with both IE6 and Firefox 1.0, response.redirect
and server.transfer take about a minute. But on my WinNT machine with
IE5.5, it works instantly. What's going on?


The trick Server.transfer performs, is 'passing' the session context and
casting it back. So, what are you storing in the session?

Feb 12 '06 #4
I'm just trying to redirect the page when I cancel a form. Here's the
code, basically:

<%
addMode = request.querystring("mode")
if addMode = "doadd" then
if request.form("submit1") = "Cancel" then
response.clear()
server.redirect("admin_members.asp")
end if
...
end if
%>

<form action="admin_members_add.asp?mode=doadd" method="post"
id="form1" name="form1">
<input type="text" ...>
...
<input type="submit" value="Add Member" id="submit1"
name="submit1">
<input type="submit" value="Cancel" id="submit1" name="submit1">
</form>

Feb 13 '06 #5
wizard04 wrote on 13 feb 2006 in microsoft.public.inetserver.asp.general:
server.redirect("admin_members.asp")


server.redirect ???

I know only:

response.redirect

[which sends a header to the browser
advising the browser to load another page,
possibly on another domain altogether]

and

server.transfer

[continueing the asp processing of the file
on another file on the server,
regardless of even the browser being in existence]

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 13 '06 #6
wizard04 wrote:
I'm just trying to redirect the page when I cancel a form. Here's the
code, basically:

<%
addMode = request.querystring("mode")
if addMode = "doadd" then
if request.form("submit1") = "Cancel" then
response.clear()
server.redirect("admin_members.asp")
end if
...
end if
%>

<form action="admin_members_add.asp?mode=doadd" method="post"
id="form1" name="form1">
<input type="text" ...>
...
<input type="submit" value="Add Member" id="submit1"
name="submit1">
<input type="submit" value="Cancel" id="submit1" name="submit1">
</form>


--
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.
Feb 13 '06 #7
Sorry - I meant server.transfer (though I've tried response.redirect
too)

Evertjan. wrote:
wizard04 wrote on 13 feb 2006 in microsoft.public.inetserver.asp.general:
server.redirect("admin_members.asp")


server.redirect ???

I know only:

response.redirect

[which sends a header to the browser
advising the browser to load another page,
possibly on another domain altogether]

and

server.transfer

[continueing the asp processing of the file
on another file on the server,
regardless of even the browser being in existence]

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)


Feb 13 '06 #8
wizard04 wrote:
response.clear()


I can only think of bad reasons to use this. If a decision may result in
redirection, then make that decision before putting anything in the buffer.

--
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.
Feb 13 '06 #9
That makes sense; I've fixed that. However, this does not solve my
problem.

Feb 13 '06 #10
wizard04 wrote:
That makes sense; I've fixed that. However, this does not solve my
problem.


I don't think you have made your problem clear.

--
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.
Feb 13 '06 #11
On the WinNT computer, when I click Cancel on the form, it goes
directly to admin_members.asp.
On the WinXP computer, when I click Cancel on the form, it takes about
a minute to go to admin_members.asp.

Why, and how can it be fixed?

Feb 14 '06 #12
wizard04 wrote:
On the WinNT computer, when I click Cancel on the form,
it goes directly to admin_members.asp.
On the WinXP computer, when I click Cancel on the form,
it takes about a minute to go to admin_members.asp.


1. Are you talking about the client machine or server when you specify the
OS?
2. Do you experience the same behavior with different browsers?
3. What kind of cache control are you using?
4. What are the behavioral differences when you switch between
Server.Transfer() and Response.Redirect()?
5. What kind of performance lag do you get if you go directly to the
redirect target?
--
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.
Feb 14 '06 #13
1. Client OS
2. Unfortunately, I don't have the ability to test with the same
browser on the different machines (I don't have installation
privileges). On the WinXP machine, I have tried IE 6.0 and Firefox
1.0.7, both having the lag. On the WinNT machine, I've tried IE 5.5,
which doesn't have the lag.
3. I don't know - how would I determine that?
4. Both have the same behavior.
5. No lag

Feb 14 '06 #14

"wizard04" <wi**********@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
1. Client OS
2. Unfortunately, I don't have the ability to test with the same
browser on the different machines (I don't have installation
privileges). On the WinXP machine, I have tried IE 6.0 and Firefox
1.0.7, both having the lag. On the WinNT machine, I've tried IE 5.5,
which doesn't have the lag.
3. I don't know - how would I determine that?
4. Both have the same behavior.
5. No lag


is
admin_members.asp
doing some database operation that the parent page opens as well? This could
be a database record lock.

Server.Transfer is typically executing two pages at a time, while redirect
would first cause the first page to be garbage collected (including closing
open records).

If a database is used, be sure to use ADO in such a way that you use a
client-side cursur.

rs.cursorlocation = adUseClient

Feb 17 '06 #15
I've made a couple very simple test pages with no database operations
at http://www.tecom.usmc.mil/cce/A.asp

I get the lag when clicking either Submit or Cancel on my WinXP
machine, but it works fine on my WinNT machine.

A.asp has only HTML

B.asp has the following VBScript at the top, before <html>:
<%
if Request.Form("subm") = "Cancel" then
'server.Transfer("A.asp")
response.Redirect("A.asp")
elseif request.Form("subm") = "Submit" then
response.Write("<a href=""A.asp"">Back to test page A</a>")
response.End()
end if
%>

Any insights?

Feb 17 '06 #16
wizard04 wrote:
Any insights?


Yes. Your failure to quote motivated me to drop out of the thread.

Also, you could write something and flush the buffer at the end of the first
and beginning of the second. This may be illustrative. Furthermore, you
could see exactly what is happening by examining the HTTP headers.

--
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.
Feb 17 '06 #17

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

Similar topics

1
by: Bill | last post by:
I've got an application that I want to redirect to another file while keeping the location of the file hidden. In other words, WEBROOT.COM/REDIT.ASP?a=14 is going to display the contents of...
6
by: \A_Michigan_User\ | last post by:
Ok, I give up... why do 1-4 work fine... but 5-6 give "can't find" errors? 1. Client-side VBscript code: call navigate("\\209.11.22.33\MyDir") 2. Client-side VBscript code: location.href...
3
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...
4
by: Harsh Thakur | last post by:
Hi, I'd like to know the performance related differences between Response.Redirect and Server.Transfer. I'd like to redirect the user to a different page. I can either do a...
2
by: Big E | last post by:
I'm currently using a submit button. When users click submit it goes to the VB code and does a Response.Redirect. The Response.Redirect is very slow. What are the other options for moving between...
10
by: GreggTB | last post by:
I've got an page (LOGIN.ASPX) that receives the user's login information. During the page load, it checks the credentials against a database and, if validation is successful, creates an instance of...
3
by: Alan Silver | last post by:
Hello, Sorry if this is a stupid question, but I can't really see much difference between these tow methods according to the scant info in the SDK. Could anyone enlighten me? TIA -- Alan...
1
by: Microsoft | last post by:
Error for Server.Transfer: Error: Error Executing Child Request MSDN: http://support.microsoft.com/default.aspx?scid=kb;en-us;320439 Says to use Response.Redirect but get this error here:...
9
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)....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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,...
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...
0
isladogs
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...

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.