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

Reponse.Redirect ()

I have used a response.redirect() in the first page of my weblog to transfer
it to anther page,but it seemes to be slow.Is there a workaround (probably
Server.Transfer???)???

Thanks
Nov 19 '05 #1
5 1793
Yes, Server.Transfer is the more efficient cousin of Response.Redirect.

Response.Redirect requires an extra round trip to the client and back, which
is why it's less efficient.
Server.Transfer has its own set of tradeoffs though, such as the fact that
the URL displayed in the user's browser will not be the same as the server
page that is being displayed. In some cases that can be good, but more
often it causes development annoyances.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"RayAll" <Ra****@microsft.com> wrote in message
news:Ov**************@TK2MSFTNGP12.phx.gbl...
I have used a response.redirect() in the first page of my weblog to
transfer it to anther page,but it seemes to be slow.Is there a workaround
(probably Server.Transfer???)???

Thanks

Nov 19 '05 #2
If the first page doesn't have to be a dynamic page you can always use
javascript:

<head>

<script language="JavaScript">

window.location="http://www.yourdomain.com/yoursecondpage.asp";

</script>

</head>

Gabriel Lozano-Morán

Software Engineer

Sogeti
"RayAll" <Ra****@microsft.com> wrote in message
news:Ov**************@TK2MSFTNGP12.phx.gbl...
I have used a response.redirect() in the first page of my weblog to
transfer it to anther page,but it seemes to be slow.Is there a workaround
(probably Server.Transfer???)???

Thanks

Nov 19 '05 #3
What do you mean by dynamic page?you mean interms of getting Queryparameters
and bluh bluh ...? my first page is an aspx page which connects to database.

Thanks
"Gabriel Lozano-Morán" <ga************@no-spam.com> wrote in message
news:OW**************@TK2MSFTNGP14.phx.gbl...
If the first page doesn't have to be a dynamic page you can always use
javascript:

<head>

<script language="JavaScript">

window.location="http://www.yourdomain.com/yoursecondpage.asp";

</script>

</head>

Gabriel Lozano-Morán

Software Engineer

Sogeti
"RayAll" <Ra****@microsft.com> wrote in message
news:Ov**************@TK2MSFTNGP12.phx.gbl...
I have used a response.redirect() in the first page of my weblog to
transfer it to anther page,but it seemes to be slow.Is there a workaround
(probably Server.Transfer???)???

Thanks


Nov 19 '05 #4
thanks
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:ud*************@TK2MSFTNGP12.phx.gbl...
Yes, Server.Transfer is the more efficient cousin of Response.Redirect.

Response.Redirect requires an extra round trip to the client and back,
which is why it's less efficient.
Server.Transfer has its own set of tradeoffs though, such as the fact that
the URL displayed in the user's browser will not be the same as the server
page that is being displayed. In some cases that can be good, but more
often it causes development annoyances.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"RayAll" <Ra****@microsft.com> wrote in message
news:Ov**************@TK2MSFTNGP12.phx.gbl...
I have used a response.redirect() in the first page of my weblog to
transfer it to anther page,but it seemes to be slow.Is there a workaround
(probably Server.Transfer???)???

Thanks


Nov 19 '05 #5
Well in that case you should indeed use Server.Transfer() unless the first
page and the second page are on seperate servers then you should use
Response.Redirect() because the Server.Transfer() method used the
Request.MapPath() method to retrieve the path of the second page meaning
that the method expects the second page to be on the same server.

Gabriel Lozano-Morán
Software Engineer
Sogeti

"RayAll" <Ra****@microsft.com> wrote in message
news:eW**************@TK2MSFTNGP12.phx.gbl...
What do you mean by dynamic page?you mean interms of getting
Queryparameters and bluh bluh ...? my first page is an aspx page which
connects to database.

Thanks
"Gabriel Lozano-Morán" <ga************@no-spam.com> wrote in message
news:OW**************@TK2MSFTNGP14.phx.gbl...
If the first page doesn't have to be a dynamic page you can always use
javascript:

<head>

<script language="JavaScript">

window.location="http://www.yourdomain.com/yoursecondpage.asp";

</script>

</head>

Gabriel Lozano-Morán

Software Engineer

Sogeti
"RayAll" <Ra****@microsft.com> wrote in message
news:Ov**************@TK2MSFTNGP12.phx.gbl...
I have used a response.redirect() in the first page of my weblog to
transfer it to anther page,but it seemes to be slow.Is there a workaround
(probably Server.Transfer???)???

Thanks



Nov 19 '05 #6

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

Similar topics

4
by: Richard | last post by:
Hello, I'm dynamically writing out a web page using response.write. The page has images and hyperlinks (each hyperlink points back to the same page, but with a different parameter which...
1
by: Simon Prince | last post by:
Hi I have an classic ASP page that contains nothing else but the following code... <%@ Language=VBScript %> <% Response.clear Response.redirect("/Intranet") %>
1
by: JIM.H. | last post by:
Hello, In my login screen I validate user against SQL table and call my main page with Reponse.Redirect("myPage.aspx"); I see my application comes there but does not switch to myPage.aspx, I used...
5
by: Steven Nagy | last post by:
Hi all, What are the major considerations when considering Server.Transfer? I have some legacy apps (when I say legacy, I mean ASP.NET1.0) that use Server.Transfer for almost everything. I...
5
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...
1
by: Samuel Shulman | last post by:
Hi I am looking for a way to send a POST request using the Reponse.Redirect or any thing similar Thank you, Samuel
8
by: anukedari | last post by:
Hi, Could any boby please help to get the answers for the following questions: Is Apache always sends "X-Cache:MISS" header even when caching is off (disable)? or Can we say that cache...
0
by: djtodd | last post by:
Is there any way to use reponse.redirect and provide network credentials for basic auth along with it to prevent the nt security dialog box when hitting the new server location? or, is there another...
1
by: jmk | last post by:
I'm trying to use an external SMS-service through .NET Framework 1.1 and using the webClient.DownloadData(strMessage) method. The strMessage is a string consisting the parameters to send a message,...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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,...
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.